RE: [PHP-WIN] Re: PHP application URL

2003-06-27 Thread Thai Thanh Ha
: Cristian MARIN [mailto:[EMAIL PROTECTED] Sent: Saturday, June 28, 2003 12:11 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: PHP application URL To know the full URL of a called page you can use this: $url='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] ; Af

[PHP-WIN] Re: PHP application URL

2003-06-27 Thread Raul IONESCU
in fact better solution would be $url = 'http://'.$_SERVER['HTTP_HOST']; $url .= isset($_SERVER['REQUEST_URI'])?$_SERVER['REQUEST_URI']:(empty($_SERVER['QUERY_STRING'])?$_SERVER['PATH_INFO']:($_SERVER['PATH_INFO'].'?'.$_SERVER['QUERY_STRING'])); don't think so? ---

[PHP-WIN] Re: PHP application URL

2003-06-27 Thread Cristian MARIN
To know the full URL of a called page you can use this: $url='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] ; After this with preg_replace you can do what ever you want to with the URL. -- - Cristian MARIN - Developer InterAKT Online (www