开发者

PHP readfile ignores url parameters

Hi i have an odd problem. I am trying to force files to download by modifying the php headers but my actual problem is that the readfile() function doesn'开发者_开发知识库t parse anymore than one url parameter.

eg. readfile('http://localhost/page.mp3?param1=value1&param2=value2');

will give me the error readfile(http://localhost/page.mp3?param1=value1) is forbidden or unavailable. everything past the ampersand (&) is lost.

any solutions?


try & instead of your single & character

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜