RE: [PHP-DB] what's the current URL

2001-10-03 Thread Ricky Theil

Use the phpinfo(); function to show you all the environment variables.  i.e.
the current file URL w/o the query string on it is $PHP_SELF

Ricky

-Original Message-
From: Francisco Carvalho [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 03, 2001 2:51 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-DB] what's the current URL


Is there a way for PHP to know the current URL?
 
I have am include file that a TOC, I want to change the color of a specific
link in the TOC to ilustrate that that is the corrent page the user is at.
Any sugestions?
 
Thanks a bunch :-)
Franky

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] what's the current URL

2001-10-03 Thread Sheridan Saint-Michel

I don't think there is a predefined variable that actually contains the URL
as it appears in the user's address bar, but it would be easy to make a URL
from the Globals.  Check the variables listed on your server in a phpinfo.
It will probably be as simple as:

$url = http://; . $HTTP_HOST . $SCRIPT_NAME;

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


- Original Message -
From: Francisco Carvalho [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 3:50 PM
Subject: [PHP-DB] what's the current URL


 Is there a way for PHP to know the current URL?

 I have am include file that a TOC, I want to change the color of a
specific
 link in the TOC to ilustrate that that is the corrent page the user is at.
 Any sugestions?

 Thanks a bunch :-)
 Franky



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] what's the current URL

2001-10-03 Thread Ricky Theil

$PHP_SELF returns the full URL of the current script. i.e. $PHP_SELF
http://domain.com/script.php

-Original Message-
From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 03, 2001 3:30 PM
To: Francisco Carvalho; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] what's the current URL


I don't think there is a predefined variable that actually contains the URL
as it appears in the user's address bar, but it would be easy to make a URL
from the Globals.  Check the variables listed on your server in a phpinfo.
It will probably be as simple as:

$url = http://; . $HTTP_HOST . $SCRIPT_NAME;

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


- Original Message -
From: Francisco Carvalho [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 3:50 PM
Subject: [PHP-DB] what's the current URL


 Is there a way for PHP to know the current URL?

 I have am include file that a TOC, I want to change the color of a
specific
 link in the TOC to ilustrate that that is the corrent page the user is 
 at. Any sugestions?

 Thanks a bunch :-)
 Franky



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] what's the current URL

2001-10-03 Thread Francisco Carvalho

Thanks all. $PHP_SELF worked fine.

-Original Message-
From: Ricky Theil [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 03, 2001 2:37 PM
To: Ricky Theil; 'Sheridan Saint-Michel'; Francisco Carvalho;
[EMAIL PROTECTED]
Subject: RE: [PHP-DB] what's the current URL

I apologize... I'm wrong... $PHP_SELF is only the name of the current
script...

-Original Message-
From: Ricky Theil [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 03, 2001 3:35 PM
To: 'Sheridan Saint-Michel'; Francisco Carvalho; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] what's the current URL


$PHP_SELF returns the full URL of the current script. i.e. $PHP_SELF
http://domain.com/script.php

-Original Message-
From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 03, 2001 3:30 PM
To: Francisco Carvalho; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] what's the current URL


I don't think there is a predefined variable that actually contains the URL
as it appears in the user's address bar, but it would be easy to make a URL
from the Globals.  Check the variables listed on your server in a phpinfo.
It will probably be as simple as:

$url = http://; . $HTTP_HOST . $SCRIPT_NAME;

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


- Original Message -
From: Francisco Carvalho [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 3:50 PM
Subject: [PHP-DB] what's the current URL


 Is there a way for PHP to know the current URL?

 I have am include file that a TOC, I want to change the color of a
specific
 link in the TOC to ilustrate that that is the corrent page the user is
 at. Any sugestions?

 Thanks a bunch :-)
 Franky



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]