you could use a combination of the string functions
(strstr(), substr(), strpos()) or you could work out
something with regular expressions.
----- Original Message -----
From: Mako Shark <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 2:39 PM
Subject: [PHP] URL parsing
> I've got a URL like this:
> which is stored in $http_referer (as parse_url from
> I'm trying to extract the username (~fungae). I've
> read the docs on parse_url(), and have tried to get
> $http_referer[user], but it comes up with zilch. I've
> also tried to print_r $http_referer, but I only get
> scheme, host, path, and query. Any ideas?
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> 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