I made this code:
<?php
$d = opendir('/') or die($php_errormsg);
while(false !== ($f = readdir($d))) {
print $f.'<br/>';
}
closedir($d);
?>
and i get a safe mode error in php when i try to read it on my server, which is running in safemode. How can i change the code so that it doesn't give a safemode error? Other dir listers that i have tried work, but the code that i made doesn't 🙁.....
Thanks In Advance,
John