Re: [PHP] something like __URL__ (analogous to __FILE__)

2004-03-23 Thread Evan Nemerson
Take a look at $_SERVER['REQUEST_URI'] On Tuesday 23 March 2004 04:50 pm, motorpsychkill wrote: This is tricky to explain, so bear with me please. I have a file like: c:\htdocs\project_bunny\includes\config.php In my browser address bar, this would look like:

RE: [PHP] something like __URL__ (analogous to __FILE__)

2004-03-23 Thread Chris W. Parker
motorpsychkill mailto:[EMAIL PROTECTED] on Tuesday, March 23, 2004 4:51 PM said: So no matter what file I use (like rabbits.php) and I include config.php, CONFIG_FILE_URL will always return the url for the config file and NOT the file doing the calling (rabbits.php). hmm... the only thing

RE: [PHP] something like __URL__ (analogous to __FILE__)

2004-03-23 Thread Chris W. Parker
Evan Nemerson mailto:[EMAIL PROTECTED] on Tuesday, March 23, 2004 5:00 PM said: Take a look at $_SERVER['REQUEST_URI'] the problem with that is that the value REQUEST_URI will contain is that of the page in the address bar (i think) and not the location of an included file (which is what i

RE: [PHP] something like __URL__ (analogous to __FILE__)

2004-03-23 Thread motorpsychkill
-Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 5:03 PM To: Evan Nemerson; motorpsychkill; Php General List Subject: RE: [PHP] something like __URL__ (analogous to __FILE__) Evan Nemerson mailto:[EMAIL PROTECTED] on Tuesday