Heya,
thanks for looking at my thread...
Is there a way to parse content as a file in PHP? Let me explain, I have a variable that holds content that would be a gif image, if the file was image.gif it would be a picture. Only now the gif doesnt exist, but I would still like to view the content as a gif image?
I cant send headers as the headers is already send as content-type html, could it be possible to parse the content from the variable as a gif image without creating a file pasting the content in it and then linking to it?
Thank you in advance!
Regards,
Jasoncould it be possible to parse the content from the variable as a gif image without creating a file pasting the content in it and then linking to it?Without sending the appropriate content-headers (and therefore displaying nothing but the GIF)? No.
I can't think of any way (without sending headers) except outputting the data to a file. Sorry.Without sending the appropriate content-headers (and therefore displaying nothing but the GIF)? No.
I can't think of any way (without sending headers) except outputting the data to a file. Sorry.
Thank you very much, I am now first saving it as a file, then linking to it. Thank you very much.
thanks for looking at my thread...
Is there a way to parse content as a file in PHP? Let me explain, I have a variable that holds content that would be a gif image, if the file was image.gif it would be a picture. Only now the gif doesnt exist, but I would still like to view the content as a gif image?
I cant send headers as the headers is already send as content-type html, could it be possible to parse the content from the variable as a gif image without creating a file pasting the content in it and then linking to it?
Thank you in advance!
Regards,
Jasoncould it be possible to parse the content from the variable as a gif image without creating a file pasting the content in it and then linking to it?Without sending the appropriate content-headers (and therefore displaying nothing but the GIF)? No.
I can't think of any way (without sending headers) except outputting the data to a file. Sorry.Without sending the appropriate content-headers (and therefore displaying nothing but the GIF)? No.
I can't think of any way (without sending headers) except outputting the data to a file. Sorry.
Thank you very much, I am now first saving it as a file, then linking to it. Thank you very much.