Hi,

Friday, March 14, 2003, 6:36:04 AM, you wrote:
BY> Hi

BY> When you want to know the name of the script you are running you can use
BY> : $SCRIPT_NAME.
BY> However, this info is not available when running a PHP script in CGI
BY> mode.

BY> If i have a fine called berber1.php and a link to this file called
BY> berber2.php, how can i know in the code
BY> if it has been called from berber1.php or berber2.php?

BY> thanks

BY> berber

BY> --
BY> PHP General Mailing List (http://www.php.net/)
BY> To unsubscribe, visit: http://www.php.net/unsub.php


$argv[0] will give you the command used to invoke the script (including the path)

-- 
regards,
Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to