Probably best to read stuff first ;)
try preg_match
preg_match("/^(http:\/\/)?([\/]+)/i", $HTTP_REFERER, $hostname);
the hostname will be in $hostname[2]
Hope it helps.
On Fri, 17 Aug 2001, Nick Davies wrote:
>
> Sorry missed a bit you'll just need to ereg out the hostname from
> HTTP_REFERER - take everything after http:// and before /...
>
> Nick.
>
> On Fri, 17 Aug 2001, Erich Zigler wrote:
>
> > I am working on the last half of an Online Signup page for an ISP.
> >
> > There is a local .php page on the webserver that actually finalizes the
> > addition of the user, but ONLY if $HTTP_REFERER is from a certain host.
> >
> > I was wondering what you guys think of doing it this way?
> >
> > Any advice would be appreciated. Thank you.
> >
> >
>
>
>
--
PHP General 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]