I use PHP 4.3.10 opendir() function to open directory from a given path...
I want to use the relative path:
$path = "/images/contents";
...
@opendir($path);
But it says the path is not accessible...
But when I use:
$path = $_SERVER[DOCUMENT_ROOT]."/images/contents";
it works fine...
Why am I not able to use a relative path???
The dir structure is:
root
->images
-->contents
...
Help!
Thanks.