$tmp=split("\\|/",__FILE__);
$s=$tmp[count($tmp)-1];

or something..
-- 
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"Shaun" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hi,
>
> due to a current PHP upgrade i am unable to use the following code to get
> the filename of the page:
>
> $s = getenv('SCRIPT_NAME');
>
> I need to get the filename without any avariables attached. For example if
> the URL is
>
> www.mydomain.com/test.php?test=yes
>
> using $s = getenv('PHP_SELF');
>
> returns test.php?test=yes
>
> how can I return just test.php i.e. the filename on its own
>
> Thanks for your help
>
>



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

Reply via email to