Re: $ENV['SCRIPT_FILENAME']
| From: | Rory Browne | Date: | Sun, 14 May 2006 20:20:17 +0000 |
| Subject: | Re: $ENV['SCRIPT_FILENAME'] | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236158@lists.php.net to get a copy of this message | ||
Unless there is an other piece of code filling up the $ENV array - possibly
a cleaning routine.
On 5/14/06, Rory Browne <rory.browne@gmail.com> wrote:
Sorry - what's your question?
I think that $ENV should be $_ENV, which in turn should be $_SERVER.
On 5/14/06, Ryan A < genphp@yahoo.com> wrote:
Hi,
I am going through another persons script (which is
not working) and have come accross this:
if (isset($ENV['SCRIPT_FILENAME']))
{
$CLIENT_PATH= dirname($ENV['SCRIPT_FILENAME']);
WelcomeScreen();
TestSetup($TH_HASH);
exit;
}
I am just starting on CLI stuff but I cant find much
references to $ENV['SCRIPT_FILENAME'], reading the
manual I know there is a $_ENV superglobal but just
$ENV?
I am pipeing some log data from apache to this script
but while debuggin I have noticed that i does not go
further than the above if() statement...
and that part IS needed because if accesseed via a
POST it should execute that code and show the
WelcomeScreen()
Even a RTFM with a reference in the manual would be
appreciated.
Thanks!
Ryan
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
-----
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=bXVzaWNndTc%3D
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php