php_auto_file prompt with internet explorer

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
marc2003
-


Joined: 04 Feb 2004
Posts: 15

PostPosted: Mon May 07, 2007 6:04 pm    Post subject: php_auto_file prompt with internet explorer Reply with quote

right i have a php script pulling images from a database and it works fine in firefox. and if i embed the image in html, it will display in ie7 as well. but if you try and access the file directly in ie7, i get this prompt....



if i open it, i just gets loads of garbage. is this a mime type problem? i'm confused as all my other php scripts work fine in internet explorer. or maybe it's just my internet explorer that's the problem. here's link to an image on my server so you can see for yourself.

http://merrydown.dyndns.org/upload/thumb.php?id=9

running the php5.2.1 package from this site and the lastest abyss x1. thanks.
Back to top View user's profile Send private message
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Mon May 07, 2007 6:12 pm    Post subject: Reply with quote

Your server sends the wrong content-type. It should be image/jpeg and not image/jpg.
Back to top View user's profile Send private message
marc2003
-


Joined: 04 Feb 2004
Posts: 15

PostPosted: Mon May 07, 2007 6:19 pm    Post subject: Reply with quote

cmxflash wrote:
Your server sends the wrong content-type. It should be image/jpeg and not image/jpg.


thanks for the speedyreply. that did the trick.

and what risk was i at with the ../ thing you mentioned?

anyway i've changed it to

$id = intval($_GET['id']);

that should be ok?
Back to top View user's profile Send private message
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Mon May 07, 2007 6:44 pm    Post subject: Reply with quote

That should be fine.
Back to top View user's profile Send private message
nikos28
-


Joined: 16 Mar 2009
Posts: 2

PostPosted: Mon Mar 16, 2009 3:25 pm    Post subject: php_auto_file, 2.00kb Reply with quote

Hello Everyone

Can you please give me some help. I have designed a new site and every time I press the enter button I get the following pop_up window

------------------------------------------------------
Do you want to open or save this file?
Name:index.php
Type:php_auto_file, 2.00kb
From: "Name of the site"

Open.................Save.................Cancel

------------------------------------------------------

Can you please give me some help

Thank you in advance
Back to top View user's profile Send private message
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Wed Mar 18, 2009 12:03 am    Post subject: Reply with quote

Have you followed Aprelium's directions for installing PHP? Link

If you have PHP on your server and you set up in Abyss, you missed a step or two.

Goto the console, scripting parameters, click on the PHP entry and you'll see a table of associated extensions. "php" needs to be listed as one of them.
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
David Morgan
-


Joined: 09 Aug 2010
Posts: 1

PostPosted: Mon Aug 09, 2010 12:58 am    Post subject: Reply with quote

pkSML wrote:
Have you followed Aprelium's directions for installing PHP? Link

If you have PHP on your server and you set up in Abyss, you missed a step or two.

Goto the console, scripting parameters, click on the PHP entry and you'll see a table of associated extensions. "php" needs to be listed as one of them.


And if it isn't?
_________________
Cheers,
David
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group