When a user inserts special symbols \\
or //
in search box, I get following error:
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity
How to remove it?
$q=$_GET["abc"];
$xml = "http://abc/seach?q=".urlencode($q);
$Obj = simplexml_load_file($xml);