There is script that receives another url as GET parameter:
script.php?file=http://www.google.com&id=123
The problem is: when url has p
Try to encode every special character like this:
script.php?file=http%3a%2f%2fwww.google.com%3fq%3dadsf%26lang%3den&id=123
although it might be better and easier to use rawurlencode().
rawurlencode()
Also, read this about URL encoding.