I read his question as wanting to know how to figure out the URL of his
site, use the varible $_SERVER['HTTP_HOST'] or $HTTP_HOST on old PHP
versions, that will return the full domain, from the www. to the .com so you
may want to do some spliting of that varible to figure out what just the bit
in the middle is... If you need help doing that just post again :)

Andrew

----- Original Message -----
From: "php @ banana" <[EMAIL PROTECTED]>
To: "PHP-GENERAL" <[EMAIL PROTECTED]>
Sent: Sunday, August 04, 2002 8:19 AM
Subject: Re: [PHP] which function can do so ?


> you mean redirect?
>
> header("Location: www.stuff.com");
>
> make sure it goes before any output to screen or html tags or it won't
> work,
>
>
> >I am exactly a beginner of php. This question may be easy.
> >I have a php program which want to achieve the url from browser.
> >e.g. webmail.xxx.com
> >
> >then how the index.php is able to know it is xxx.com ??
> >which function in php can do so??
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> ________________________--__-______-______________
> eat pasta
> type fasta
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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

Reply via email to