Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- parse_url questioin
February 12, 2007, 8:10 am
rate this thread
$ref = http://example.com/?p=32
$ref_a = parse_url($ref);
echo ref_a['path']; //returns nothing
Does the '?' cause parse_url to fail?
I'm trying to capture a referrer in an user agent that contains a query string.
As a work-around, I'm using this:
$urlPath = stristr(substr($urlString, 9), '/');
Thanks in advance.