Code: Select all
$temp = $_SERVER['PATH_TRANSLATED'];
echo stripslashes($temp);-------------------------------------
c:\apache\htdocs\root\str.php
c:\apache\htdocs\abc\str.php
c:\apache\htdocs\test\str.php
c:\apache\htdocs\str.php
--------------------------------------
now i wanted to check wheather \root\, \abc\, \test\ exists or not ?
I mean to say is :
if the sub folder exists or not and if it exists whats its name?
help me plz.
Tahnx.
Mannan.