php tutorials, php form validation
Archive Tutorials
Discussion Home
Login / Register

Board List
PHP programming
General

Links
How to save gas 25% or more
Marshall Reddick
Network Marketing Forums
Income Tax Help
Lose 10 Pounds in 3 Weeks
PHP Forum Script
Online Contest

Learn PHP in 47 hours!

Back to General

Search

IE6 ask to download index.php IE6 ask to download index.php

IE6 ask to download index.php

by gwoin on Wed 06/28/2006 02:20 AM

Hi, 

I am building a new website in php. 

I get a big problem with IE6 (not with IE7, neither any other software). 

Actually, when I try to launch site by entering "www.mywebsite.com", IE6 ask me for downloading the index.php page O_o 

It doesn't ask this with a simple php page with almost nothing in it, but my page has a complex structure, because the index.php has an iframe with another php file. 

Some one has any idea to resolve it (something to put in the header of the file, ...) ? 

Thank you :^)

[Reply] [Back to Top]

what OS is your server?

by uclaboyz on Wed 06/28/2006 10:15 AM

Hi, 

Most likely your website is hosted on a server that does not support PHP. 

If your web host/server is Windows-based, then it may support PHP. 

Who is hosting your website, by the way? 

Steven

[Reply] [Back to Top]

woops

by uclaboyz on Wed 06/28/2006 01:20 PM

sorry, didn't read your post carefully. 

"It doesn't ask this with a simple php page with almost nothing in it, but my page has a complex structure, because the index.php has an iframe with another php file." 

Do you have a force download in your META header? 

Content-Type: application/force-download

[Reply] [Back to Top]

It is almost that...

by gwoin on Thu 06/29/2006 01:20 AM

Thank you for your answer.
I modified the first META to add the type: 


Is it correct? 

It seems to work once the page is loaded, but there is still a problem when I load the page  the first time by entering "www.mywebsite.com".
It still asking for downloading the file. 

Then, when I reload the page, all is ok, and I can see the entiere website without any problem... 

Is there other META headers to add in order to correctly load a page under IE6? 

Thank you :)

[Reply] [Back to Top]

Oops

by gwoin on Thu 06/29/2006 01:23 AM

The meta was not wrote in my last post.
It is this one: 

http-equiv="Content-Type" content="application/force-download; text/html; charset=iso-8859-1" 

Is it correct?

[Reply] [Back to Top]

try this

by uclaboyz on Thu 06/29/2006 01:43 AM

try:
http-equiv="Content-Type" content="text/html; charset=iso-8859-1"

[Reply] [Back to Top]

nop

by gwoin on Thu 06/29/2006 04:23 AM

Thanks for the idea, but I already tried and it does not work :(

[Reply] [Back to Top]

full meta

by uclaboyz on Thu 06/29/2006 08:52 AM

Hi, 

hm...  if you don't mind, copy and paste your meta tags here (both for the parent php page, and the php called out in the iframe). 

What you can also do is get rid of (make a copy of it first, so you don't lose it) all of your meta tags and see if that does anything different.  You can do a process of elimination.  First try getting rid of meta in the php file called out in iframe.  If that doesn't work, get rid of meta in the parent php file...  let me know what happens!

[Reply] [Back to Top]

nop

by gwoin on Fri 06/30/2006 12:51 AM

I tried by removing all the meta in the both files then just in one and just in the other one and the problem is still there. :^( 

I tried with this header for both the files:
#html xmlns="http://www.w3.org/1999/xhtml"#
#head#
#meta http-equiv="Content-Type" content="application/force-download; text/html; charset=iso-8859-1" /#
#title#...#/title#
[...] 

( I replaced the < and > by # )

[Reply] [Back to Top]

weird!

by uclaboyz on Sat 07/01/2006 10:20 AM

Okay... I'm pulling my hair out for you! 

Do you mind telling me the URL of the page in question?

[Reply] [Back to Top]

Thank you

by gwoin on Mon 07/03/2006 02:00 AM

Thank you for trying to help me. 

The w.i.p. version is here: http://www.wipon.fr/new 

It seems that the problem does not appears on all computers (O_o ???). S may be you won't get any errors.

[Reply] [Back to Top]

no errors for me

by uclaboyz on Wed 07/05/2006 11:20 AM

yeah, I didn't get any errors. 

Perhaps it's in your IE's security setting? 

Also, try to use the full url in your iframe src tag.  Instead of src="news.php?lang=en&skin=12" use src="http://www.wipon.fr/new/news.php?lang=en&skin=12" 

See if that helps.

[Reply] [Back to Top]

...

by gwoin on Thu 07/06/2006 02:24 AM

I noticed the problem on several computers (about 10). 

I changed the permissions of the files to be executed and I will try with the complete adress of the iFrames. 

Thanks again to take time for me :^)

[Reply] [Back to Top]

© Copyright 2006-2007.  All Rights Reserved. Site hosted by Small Business Web Design
how to start a blog | parenting tips website | Passive Income | baby websites