Getting script pathname in a script run from the command line
From: James Pittman (jpittman1_at_yahoo.com)
Date: 03/29/05
- Next message: tom.grandsaert_at_gmail.com: "Re: File upload"
- Previous message: tom.grandsaert_at_gmail.com: "Re: File upload"
- Next in thread: Ken Robinson: "Re: Getting script pathname in a script run from the command line"
- Reply: Ken Robinson: "Re: Getting script pathname in a script run from the command line"
- Reply: Micha³ Wo¼niak: "Re: Getting script pathname in a script run from the command line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: tom.grandsaert_at_gmail.com: "Re: File upload"
- Previous message: tom.grandsaert_at_gmail.com: "Re: File upload"
- Next in thread: Ken Robinson: "Re: Getting script pathname in a script run from the command line"
- Reply: Ken Robinson: "Re: Getting script pathname in a script run from the command line"
- Reply: Micha³ Wo¼niak: "Re: Getting script pathname in a script run from the command line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|