I want to change directory using chdir
in php, because i need to execute command in Linux.
My current directory is /var/www/httpdocs/website/admin
,I want to go to httpdocs's sub_directory docs
.I use absolute path like:
chdir("/var/www/httpdocs/docs");
but it does't work.
I only can get website using : chdir("../");
or get admin's sub_directory images
using : chdir("/var/www/httpdocs/website/admin/images");
but I can't get httpdocs
.
what's wrong?
Any tips would be appreciated.