I have two PHP files, lets call them File A and File B.
In file A, I create a page with href links. The relevant code is:
{ print "$file
\n"; }
In File B I try to open myval as a directory and read it. The
relevant code is:
$handle=opendir($myval);
while ($file = readdir($handle)) {
if ($file == "." || $file == ".." || $file == "listit.php")
{ }
else
{ print "
\n"; }
}
closedir($handle);
when I access File A, it generates the hrefs ok. When I click on a link,
File B generates a unknow directory error. I have checked in File B and myval is set to the correct value. If I manually replace the $myval in the opendir statement to "0304" (or any valid directory) it works fine.
Any ideas why it won't accept the passed in directory name ?
thanks,
-D
