I am working on a script to open a directory and read the image files in it. I got it working with the $currentdir variable if the php file is in the same directory as it is opening. Now i wanna move that file out(two directories up) and read the directory from there. I have searched and used a bunch of methods, such as
$path='/images/pictures/';
$dir=opendir("$path");
$path='/images/pictures/';
$dir=opendir("$path");
$path='/home/public_html/Chad3/images/pictures/';
$dir=opendir("$path");
$path=$currentdir.'/images/pictures/';
$dir=opendir("$path");
none of these methods are working. Am I missing something or is there another way to do this?
thanx for the help
chad