View previous topic :: View next topic |
Author |
Message |
marc2003 -
Joined: 04 Feb 2004 Posts: 15
|
Posted: Mon May 07, 2007 6:04 pm Post subject: php_auto_file prompt with internet explorer |
|
|
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 |
|
|
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Mon May 07, 2007 6:12 pm Post subject: |
|
|
Your server sends the wrong content-type. It should be image/jpeg and not image/jpg. |
|
Back to top |
|
|
marc2003 -
Joined: 04 Feb 2004 Posts: 15
|
Posted: Mon May 07, 2007 6:19 pm Post subject: |
|
|
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 |
|
|
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Mon May 07, 2007 6:44 pm Post subject: |
|
|
That should be fine. |
|
Back to top |
|
|
nikos28 -
Joined: 16 Mar 2009 Posts: 2
|
Posted: Mon Mar 16, 2009 3:25 pm Post subject: php_auto_file, 2.00kb |
|
|
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 |
|
|
pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
Posted: Wed Mar 18, 2009 12:03 am Post subject: |
|
|
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 |
|
|
David Morgan -
Joined: 09 Aug 2010 Posts: 1
|
Posted: Mon Aug 09, 2010 12:58 am Post subject: |
|
|
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 |
|
|
|