I've just run into this error, which is I believe caused by some php5 requirement.
$site = substr($p, 0, $pos); //http://www.google.com
$site = str_replace('http://', '', $site, 1);
What I'm trying to do is very simple: slowly dissect a url step by step.
I tried to put a $foo = $site after the first line and use $foo instead of $site on line 2--something I read while googling-- but it did nothing to fix the problem (as expected).
Could someone shed light on the issue?