RE: [PHP] Easy Path ?

From: Date: Thu, 11 Jan 2001 23:19:30 +0000
Subject: RE: [PHP] Easy Path ?
Groups: php.general 
Request: Send a blank email to php-general+get-34127@lists.php.net to get a copy of this message
> if I have a dir like this > root\main\test.php > > how could I access this: from that script > root\test\test.php > > basicly I mean how do I access a path before the current one $PHP_SELF will point to "root\test\test.php" (though, I think you'd be better off thinking of "/root/test/test.php"). You can explode this based on the "/" character to find the previous directory. Jason -- Jason Murray jasonm@melbourneit.com.au Web Design Team, Melbourne IT Fetch the comfy chair!

« previous php.general (#34127) next »