Getting script pathname in a script run from the command line

From: James Pittman (jpittman1_at_yahoo.com)
Date: 03/29/05


Date: Tue, 29 Mar 2005 14:11:15 -0500

Hi,

I have a PHP script running in a Cron job in Unix, using the "php"
command-line command executable. How do I get the path to the script,
from within the script? I've tried all the $_SERVER[] variables to no
avail.

Jamie



Relevant Pages