Script Nane in CGI mode
| From: | Boaz Yahav | Date: | Thu, 13 Mar 2003 20:36:04 +0000 |
| Subject: | Script Nane in CGI mode | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-139589@lists.php.net to get a copy of this message | ||
Hi
When you want to know the name of the script you are running you can use
: $SCRIPT_NAME.
However, this info is not available when running a PHP script in CGI
mode.
If i have a fine called berber1.php and a link to this file called
berber2.php, how can i know in the code
if it has been called from berber1.php or berber2.php?
thanks
berber