- glob: documentation ( source)
<?php
#$i = file_put_contents('/etc/foobar.txt', 'you got hacked');
#echo $i;
#echo file_get_contents('/etc/foobar.txt');
#fecho file_get_contents('/etc/httpd/site
foreach(glob("/var/*") as $file) {
echo $file . "\n";
}