Re: note 31456 rejected from reserved.variables by joey
| From: | Maxim Maletsky | Date: | Fri, 16 May 2003 00:36:41 +0000 |
| Subject: | Re: note 31456 rejected from reserved.variables by joey | ||
| References: | 1 2 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48061@lists.php.net to get a copy of this message | ||
Why did you `reject' this post, Joey?
I thought rejecting is needed when there was rather a question asked
since the email original poster gets indicates the directions to where
find the help. I would usually delete such post quietly.
--
Maxim Maletsky
maxim@php.net
On 16 May 2003 00:17:08 -0000
joey@php.net wrote:
> Another way to get the current script filename without the path:
>
> $filename = basename($PHP_SELF);
>
> or (without the .php extension):
>
> $filename = basename($PHP_SELF, ".php");
>
> (Use $_SERVER['PHP_SELF'] if your setup prefers that.)
>
> --
> PHP Notes Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>