[PHP] question on getting URL

2005-01-30 Thread David Banning
I have a script called index.php on my main page and it actually is used
to launch several webpages like so;

http://mysite.com/index.php?id=16

When http://mysite.com runs it still uses index.php. but it doesn't
show it in the address bar. All it shows is;

http://mysite.com

What I would like to do is to get the information from the address bar
to know when I am on the main page.

-- 

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



Re: [PHP] question on getting URL

2005-01-30 Thread Matthew Fonda
$file = basename(_FILE_);

On Sun, 2005-01-30 at 01:26, David Banning wrote:
 I have a script called index.php on my main page and it actually is used
 to launch several webpages like so;
 
 http://mysite.com/index.php?id=16
 
 When http://mysite.com runs it still uses index.php. but it doesn't
 show it in the address bar. All it shows is;
 
 http://mysite.com
 
 What I would like to do is to get the information from the address bar
 to know when I am on the main page.
 
 -- 
-- 
Regards,
Matthew Fonda

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