file_get_contents and %
Posted: Fri Jul 06, 2007 7:46 am
Hi,
When I'm using file_get_contents with a string that contains % then I got a 403 HTTP Error.
Whereas, the same link works fine in my browser.
If I'm doing the same with a string without % then it's OK.
How can I get it works with % ?
You can check this with wikipedia files. for example:
$str = file_get_contents("http://en.wikipedia.org/wiki/Josef_Ho%C ... A9-Wronski");
Thanks

When I'm using file_get_contents with a string that contains % then I got a 403 HTTP Error.
Whereas, the same link works fine in my browser.
If I'm doing the same with a string without % then it's OK.
How can I get it works with % ?
You can check this with wikipedia files. for example:
$str = file_get_contents("http://en.wikipedia.org/wiki/Josef_Ho%C ... A9-Wronski");
Thanks