file get contents - PHP changes the file_get_contents param url -
i'm using following line page content:
$handle = file_get_contents( "http://www.mywebsite.com/index.php?show=users&action=msg§ion=send", null, null, 1000, 19000);
and then, i'm getting following message:
warning: file_get_contents(http://www.mywebsite.com/index.php?show=users&action=msg §ion=send): failed open stream: http request failed! http/1.0 403 forbidden
(please take note @ bolded part).
what happened it? why changes url param?
i don't think php changing querystring parameters.
if reading message in browser, should matter of how output html formatted. so, 403 error getting should not related unwanted url transformation.
Comments
Post a Comment