Re[2]: [PHP] Get the current file name

2003-07-27 Thread Burhan Khalid
On Friday, July 25, 2003, 4:59:24 PM, Shaun wrote: S> thanks for your reply, S> but that doesn't seem to work either, how about removing everything after S> and including the ?, how would i do that? try echo basename($_SERVER['PHP_SELF']) Please trim your posts :) -- Regards, Burhan Khalid ph

Re: [PHP] Get the current file name

2003-07-25 Thread sven
how about this: $_SERVER["PHP_SELF"]; ciao SVEN Shaun wrote: > thanks for your reply, > > but that doesn't seem to work either, how about removing everything > after and including the ?, how would i do that? > > > "Manoj Nahar" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> u can

Re: [PHP] Get the current file name

2003-07-25 Thread Shaun
thanks for your reply, but that doesn't seem to work either, how about removing everything after and including the ?, how would i do that? "Manoj Nahar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > u can try > $filename=$_SERVER[SCRIPT_NAME]; > > Manoj > > > Shaun wrote: > > >Hi

Re: [PHP] Get the current file name

2003-07-25 Thread manoj nahar
u can try $filename=$_SERVER[SCRIPT_NAME]; Manoj Shaun wrote: 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.co

[PHP] Get the current file name

2003-07-25 Thread Shaun
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 t