Re: how can i get local script name?
| From: | Brian Clark | Date: | Wed, 23 May 2001 13:55:52 +0000 |
| Subject: | Re: how can i get local script name? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54053@lists.php.net to get a copy of this message | ||
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.