Re: [PHP] Current URL, Last URL, error handling

2002-04-04 Thread Ben Edwards

Kind of but not quite.  Was wondering if PHP help the actual full url.

Ben

At 15:26 04/04/2002, you wrote:

On Thursday 04 April 2002 21:56, Ben Edwards wrote:
  Is there a way I can get the whole URL of the current page for error
  handling/reporting.  Also is there a way of getting the previous/referrer
  URL for a similar purpose.

Have a look at the values inside $HTTP_SERVER_VARS:


print_r($HTTP_SERVER_VARS);



--
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
Because he's a character who's looking for his own identity, [He-Man is]
an interesting role for an actor.
-- Dolph Lundgren, actor
*/

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


* Ben Edwards  +44 (0)117 9400 636 *
* Critical Site Builderhttp://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* i-Contact Progressive Video  http://www.videonetwork.org *
* Smashing the Corporate image   http://www.subvertise.org *
* Bristol Indymedia   http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *




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


Re: [PHP] Current URL, Last URL, error handling

2002-04-04 Thread Julio Nobrega Trabalhando

$REQUEST_URI?

  If it's not the full you can complement with $HTTP_HOST or similar.

--

Julio Nobrega.

Um dia eu chego lá:
http://sourceforge.net/projects/toca

Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884


Ben Edwards [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Kind of but not quite.  Was wondering if PHP help the actual full url.

 Ben

 At 15:26 04/04/2002, you wrote:

 On Thursday 04 April 2002 21:56, Ben Edwards wrote:
   Is there a way I can get the whole URL of the current page for error
   handling/reporting.  Also is there a way of getting the
previous/referrer
   URL for a similar purpose.
 
 Have a look at the values inside $HTTP_SERVER_VARS:
 
 
 print_r($HTTP_SERVER_VARS);
 
 
 
 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 
 /*
 Because he's a character who's looking for his own identity, [He-Man is]
 an interesting role for an actor.
 -- Dolph Lundgren, actor
 */
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

 
 * Ben Edwards  +44 (0)117 9400 636 *
 * Critical Site Builderhttp://www.criticaldistribution.com *
 * online collaborative web authoring content management system *
 * i-Contact Progressive Video  http://www.videonetwork.org *
 * Smashing the Corporate image   http://www.subvertise.org *
 * Bristol Indymedia   http://bristol.indymedia.org *
 * Bristol's radical news http://www.bristle.org.uk *
 * PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *
 




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




Re: [PHP] Current URL, Last URL, error handling

2002-04-04 Thread Jason Wong

On Thursday 04 April 2002 22:56, Ben Edwards wrote:
 Kind of but not quite.  Was wondering if PHP help the actual full url.

If you look closely you can concatenate two of those values together to get 
what you want.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
The good life was so elusive
It really got me down
I had to regain some confidence
So I got into camouflage
*/

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




Re: [PHP] Current URL, Last URL, error handling

2002-04-04 Thread Ben Edwards

Don't seem to exist, neither douse REQUEST_URL?

At 16:13 04/04/2002, Julio Nobrega Trabalhando wrote:

$REQUEST_URI?

   If it's not the full you can complement with $HTTP_HOST or similar.

--

Julio Nobrega.

Um dia eu chego lá:
http://sourceforge.net/projects/toca

Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884


Ben Edwards [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Kind of but not quite.  Was wondering if PHP help the actual full url.
 
  Ben
 
  At 15:26 04/04/2002, you wrote:
 
  On Thursday 04 April 2002 21:56, Ben Edwards wrote:
Is there a way I can get the whole URL of the current page for error
handling/reporting.  Also is there a way of getting the
previous/referrer
URL for a similar purpose.
  
  Have a look at the values inside $HTTP_SERVER_VARS:
  
  
  print_r($HTTP_SERVER_VARS);
  
  
  
  --
  Jason Wong - Gremlins Associates - www.gremlins.com.hk
  
  /*
  Because he's a character who's looking for his own identity, [He-Man is]
  an interesting role for an actor.
  -- Dolph Lundgren, actor
  */
  
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
  
  * Ben Edwards  +44 (0)117 9400 636 *
  * Critical Site Builderhttp://www.criticaldistribution.com *
  * online collaborative web authoring content management system *
  * i-Contact Progressive Video  http://www.videonetwork.org *
  * Smashing the Corporate image   http://www.subvertise.org *
  * Bristol Indymedia   http://bristol.indymedia.org *
  * Bristol's radical news http://www.bristle.org.uk *
  * PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *
  
 



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


* Ben Edwards  +44 (0)117 9400 636 *
* Critical Site Builderhttp://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* i-Contact Progressive Video  http://www.videonetwork.org *
* Smashing the Corporate image   http://www.subvertise.org *
* Bristol Indymedia   http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *




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


Re: [PHP] Current URL, Last URL, error handling

2002-04-04 Thread Julio Nobrega Trabalhando

  Okay, just phpinfo(); and use the variables. You can see whetever you will
need there for url script construction. If you need, setup two pages with
phpinfo() and a link between them so you can check for Referers (the Last
Url you need)

--

Julio Nobrega.

Um dia eu chego lá:
http://sourceforge.net/projects/toca




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