I am passing a varialbe to opendir, I want to send the directory through the url. My server does not seem to process the variable as a string or something though. When I type in the name of the directory it reads it. What is going on? The code that doesn't work is:
$dir = "./".$gallery."/";
if ($handle = opendir($dir))
All that does is load the current directory (just the ./ part). However $gallery is a string passed through the url that has a directory 'vh' but it wont read it. When I replace the $gallery varialbe wiht my folder name as a static string, it reads the folder. What's going on?
$dir = "./".$gallery."/";
if ($handle = opendir($dir))
All that does is load the current directory (just the ./ part). However $gallery is a string passed through the url that has a directory 'vh' but it wont read it. When I replace the $gallery varialbe wiht my folder name as a static string, it reads the folder. What's going on?