hi, i'm pretty new to php - i am trying to list/print a list of files and
folders that are on my server:

from my little knowledge i have got:

<?php
$dir = "http://mysite.com/";;
$handle = opendir($dir);
while (($file = readdir($handle))) {
    if ($file != "." && $file != "..") {
        echo "- " . $file . "<br>";
    }
}
?>

i keep getting errors - will this code list the files on my site?

thanks in advance


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to