Click to See Complete Forum and Search --> : Parsing content as a specific file?


TitanKing
01-19-2007, 03:00 AM
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,
Jason

bradgrafelman
01-20-2007, 06:04 PM
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?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.

TitanKing
01-21-2007, 02:01 AM
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.