----- Original Message ----- 
From: "Leelakh Ran"

Hi everybody,

My site URL showing as http://www.sub.mysite.com/onetwothree.htm?get=name

I can access this URL on following ways.

$urlfullget = $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
$urlsub = $_SERVER["HTTP_HOST"]

Here, variable $urlfullget will store as =
www.sub.mysite.com/onetwothree.htm?get=name

and

variable $urlsub will store as = www.sub.mysite.com

But I want to store these data.

1) www.sub.mysite.com/onetwothree.htm
2) mysite.com

(If URL changed, stored data should change accordingly)

So, how it can store on $urlfull & $urlmain respectively. 

Expecting experts' precious support on this matter.

With thanks in advance,

Rgds, Leelakh Ran.

------------------------------------


$url = 'http://username:[EMAIL PROTECTED]/path?arg=value#anchor';

parse_url($url) = 
Array
(
    [scheme] => http
    [host] => hostname
    [user] => username
    [pass] => password
    [path] => /path
    [query] => arg=value
    [fragment] => anchor
)

http://au2.php.net/manual/en/function.parse-url.php

Reply via email to