Posted by ljuljacka on 10/12/06 14:31
first of all tnx for all the help, great people here :)
I tried this code for debuging that you suggested, and on while line I get
this error: "readdir():supplied argument is not a valid directory resource
in C:\....\ispit\script.php"
$uploaddir='ispit1/';
if ($handle = opendir($uploaddir)) { # in php5 use scandir to replace this
block
/* This is the correct way to loop over the directory. */
while (false !== ($file = scandir($handle))) {
echo "$file<br />";
}
} else {
echo "<br />could not open that directory<br />";
}
[Back to original message]
|