Support - Knowledge base

Giving you the answers you need

Why not try our knowledge base for instant help and advice to enhance your online experience with Register365? From within the knowledge base you can browse our frequently asked questions and find the right answers to help solve your queries.

Home  >  Scripting  >  PHP (Hypertext Preprocessor)  >  View Article

Why does the environment variable $SCRIPT_FILENAME return '/usr/local/bin/php' instead of the path to my script?

1*1*1*1*1*

Article

When running PHP as a CGI, the environment variable $SCRIPT_FILENAME is set to the path of the PHP CGI binary, not the PHP script. Try using $_SERVER["PHP_SELF"] instead.

Rate This Article

How useful was this article?

Not useful A little useful Useful Very useful Everything I needed