[PHP] how can i get local script name?

2001-05-23 Thread elias

hello!
I can use $PHP_SELF to get it's name.
how can i get it's name and location on the hard drive?

-elias



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how can i get local script name?

2001-05-23 Thread Wieger Uffink

Hi

$path = $HTTP_SERVER_VARS[SCRIPT_FILENAME];

wieger

elias wrote:
 
 hello!
 I can use $PHP_SELF to get it's name.
 how can i get it's name and location on the hard drive?
 
 -elias
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Wieger Uffink
tel: +31 20 428 6868
fax: +31 20 470 6905
web: http://www.usmedia.nl

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how can i get local script name?

2001-05-23 Thread Brian Clark

Hi Elias,

@ 7:51:25 PM on 5/23/2001, elias wrote:

--(snip)--
 I can use $PHP_SELF to get it's name.
 how can i get it's name and location on the hard drive?

Try $SCRIPT_FILENAME

If that doesn't produce anything, stick this in a file and view it in
your browser. One, or more, of the vars displayed in the PHP
Variables section should provide what you're looking for.

?php

phpinfo();

?

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]