I am trying to do the following:
$dburl = "http://www.somehost.com/log.php?totable=stats&ip=$ip&referer=$referer";
$somedata = @file($dburl);
the $referer variable contains the page that the user was refered from, the problem is that when it is from a search engine and contains the " quote character, then it only processes upto that quote. I have tried doing something like:
$referer = htmlspecialchars($referer);
before the above code, but it still doesnt work..
How can i fix this problem?