Re: [PHP] Fooling the client into thinking php script is .jpg

2002-02-10 Thread Christopher William Wesley
On Mon, 11 Feb 2002, Matt Moreton wrote: > I have a script that outputs an image. Using the gd library. But the ... > the image. Is it possible somehow to request the file as a .jpg? > www.host.com/displayimage.php Assuming you're using Apache, you can use a rewrite rule (with mod_rewrite). h

Re: [PHP] Fooling the client into thinking php script is .jpg

2002-02-10 Thread Bogdan Stancescu
helped! > > - Original Message - > From: "Matt Moreton" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, February 11, 2002 11:44 AM > Subject: [PHP] Fooling the client into thinking php script is .jpg > > I have a script that outputs an

Re: [PHP] Fooling the client into thinking php script is .jpg

2002-02-10 Thread Liam MacKenzie
uary 11, 2002 11:44 AM Subject: [PHP] Fooling the client into thinking php script is .jpg I have a script that outputs an image. Using the gd library. But the only way this script gets to execute is if you call it like: www.host.com/displayimage.php That then sends the content header, and the

[PHP] Fooling the client into thinking php script is .jpg

2002-02-10 Thread Matt Moreton
I have a script that outputs an image. Using the gd library. But the only way this script gets to execute is if you call it like: www.host.com/displayimage.php That then sends the content header, and the image. Obviously I am doing some other stuff in there, which is why I am using a scr