It looks like it does not matter what image headers I use for spitting out via php script an image file with unknown extension, call it .ext
Are there any actual effects? (Is PHP silently converting it, or bypassing the format?)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is the output you get the output you expect?
Maybe the script is outputting an error or the function you are using isn’t binary safe, I’m guessing from your tags that you are using
file_get_contentsbut what you may be looking for isfpassthru?Try opening the file in your browser without setting headers or set a standard html/text header, see if something curious is happening.
Good luck.