$_SERVER['SCRIPT_FILENAME'] = '/php/php.exe'???

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


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'???

bissatch@yahoo.co.uk wrote:
Quoted text here. Click to load it

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.

Site Timeline