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
...however, this may not be the best solution since actual JPEG's accidentally containing the " Add this inno the appropriate virtual-host > > > AddType application/x-httpd-php .jpg > > > This will parse all .jpg files to the PHP interpreter. > > Hope that helped! > > - Original Message

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

2002-02-10 Thread Liam MacKenzie
Add this inno the appropriate virtual-host AddType application/x-httpd-php .jpg This will parse all .jpg files to the PHP interpreter. Hope that helped! - Original Message - From: "Matt Moreton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 11, 2002 11:44 AM S