0
votes

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?

1
Did you try urlencode before passing the url to readfile? - CaNNaDaRk

1 Answers

0
votes

try & instead of your single & character