I am trying to use simplexml_load_file ($ url) with
$url = "http://www.example.com/dir/file.php?id=test&output=xml";
Now, unfortunately, simplexml_load_file () automatically preempts all ampersands and replaces them with "& amp;" s, which in turn interrupts file.php because, for some strange reason, it cannot process "& amp;" but only ordinary ampersands.
Is it possible to somehow download the file without escaping the url so that I keep my normal one instead of & & s?
Thank!
source
share