i am executing a PHP script in a directory lets say "dir2"
dir0--> dir1 --> dir2
i want to move to the directory "dir3"
dir0--> dir3
to read the content of this directory
how can i do it in PHP
Use servers absolute path when reading dir. Check opendir-function in the manual.
Theres the $dir='/tmp/'. In your case, just put it like this: (lets say the current dir is /home/www/dir0/dir1/dir2/) $dir='/home/www/dir0/dir3/';