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¶m2=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
精彩评论