Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
June 19, 2005, 5:42 pm
rate this thread
I am trying to use script filename to give me the entire path and
filename of the current page. For some reason though it is giving me
the value of '/php/php.exe'. Why might this be?
In my Apache http.conf file I do have the line:
Action application/x-httpd-php "/php/php.exe"
Might this have something to do with it?
Re: $_SERVER['SCRIPT_FILENAME'] = '/php/php.exe'???
AFAIK, to get the entire path + filename (from the point of view of the
filesystem, not the webserver) of the current script you can use the
predefined constant __FILE__.
Real e-mail address unavailable. 5000+ spams per month.