Re: [PHP] how to know which web dir you're in

2001-02-09 Thread Matt
Your best bet would probably be to use the environment variables getenv("REQUEST_URI") will get you the URL minus the host name, so basically it's the relative path. getenv("HTTP_HOST") will return the hostname (www.whatever.com) Hope this helps. Regards, Matt At 09:40 AM 2/9/2001, you wrote

Re: [PHP] how to know which web dir you're in

2001-02-09 Thread John Vanderbeck
Well... $PHPSELF gives the full url to the current webpage..so if you are at: http://gamedesign.incagold.com/index.php then $PHPSELF = http://gamedesign.incagold.com/index.php - John Vanderbeck - Admin, GameDesign - Original Message - From: "Jason Jacobs" <[EMAIL PROTECTED]> To: <[EMAIL