IE9 cannot open the php page. please help

Source: Internet
Author: User
IE9 cannot open the php page. please help me write code in the WAMP environment. every time IE9 runs the php page, a download dialog box pops up, but I can use the 360 browser for normal resolution! In addition, for all other php pages on the internet, my IE9 always pops up a download dialog box, but 360 is displayed normally! What is the reason? I cannot find the reason when I find it online. Can someone help me ??????


Reply to discussion (solution)

Content-type not configured

What about Firefox?
How to access it? Is the php file stored in the following directory?

The location of the file on the apache server is certainly okay, because 360 browsers can be accessed, and not only can I open it, but other php pages on the Internet cannot be opened! But the 360 browser does! I have never tried Firefox, but since some browsers can open it, it is not a web page problem. it may be that IE9 lacks something, but it cannot be found.

Like PHP, my first reply.

Content-type not configured

I don't know if you have not configured this:

I am also a beginner in php. this is the default! I did not write this in the code. Then I added this line of code. it's useless! You can open either of the two browsers!

In fact, I think it should be my IE9 configuration problem. maybe something is missing! Of course, I still hope you can provide more guidance ......

This post was last edited by xuzuning at 11:08:35, January 6 ,.

For IE9, the url of a download dialog box is always displayed.
Run the following code:
$ S = file_get_contents ('actual URL ');
Echo base64_encode (substr ($ s, 0,100 ));
Post result

Or provide a valid link.


This should be because you didn't put the php file under the apache www (or virtual directory) directory. As for the 360 browser, I always think that 360 of the products have always been amazing, in addition, without a php Server, non-IE kernel browsers can open php files in garbled form.

For IE9, the url of a download dialog box is always displayed.
Run the following code:
$ S = file_get_contents ('actual URL ');
Echo base64_encode (substr ($ s, 0,100 ));
Post result

Or provide a valid link.
According to what you said, in the 360 browser, I run a URL (a simple URL of my own). the output result is like this, indicating that I cannot understand it.
In addition, run IE9 or not. The download dialog box is still displayed.

For IE9, the url of a download dialog box is always displayed.
Run the following code:
$ S = file_get_contents ('actual URL ');
Echo base64_encode (substr ($ s, 0,100 ));
Post result

Or provide a valid link.



According to what you said, in the 360 browser, I run a URL (a simple URL of my own). the output result is like this, indicating that I cannot understand it.
PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0M. run IE9 or not. The download dialog box is displayed.

This should be because you didn't put the php file under the apache www (or virtual directory) directory. As for the 360 browser, I always think that 360 of the products have always been amazing, in addition, without a php Server, non-IE kernel browsers can open php files in garbled form.

My php file is placed in D: \ Apache \ htdocs. I did it on my computer and there is no www directory. In addition, I have installed php. I used to write it in the WAMP environment. at that time (the computer was different from the current one), IE9 could run. So I am also surprised that I think most of the reasons are that my IE9 lacks something.

I know what's going on,
The configuration of the php. ini file is incorrect. the dll file for loading the php extension is incorrect. Check the php runtime environment.

I know what's going on,
The configuration of the php. ini file is incorrect. the dll file for loading the php extension is incorrect. Check the php runtime environment.

Or not. I did load some dll files and some did not. Then I listened to your opinion and loaded all the dll files, but it still didn't work. The same problem still exists ......

Are there any mistakes in the key part of the Apache configuration file httpd. conf! My configuration is as follows:

# Loading the php module
LoadModule php5_module D:/WebServer/php5/php5apache2_2.dllPHPIniDir "D:/WebServer/php5"

# The extension name for running php can be .php or .html.
AddType application/x-httpd-php. php
Check the directory permissions.
<Directory "D:/htdocs/">
......

It is estimated that it is a cache problem.

Are there any mistakes in the key part of the Apache configuration file httpd. conf! My configuration is as follows:

# Loading the php module
LoadModule php5_module D:/WebServer/php5/php5apache2_2.dllPHPIniDir "D:/WebServer/php5"

# The extension name for running php can be .php or .html.
AddType application/x-http ......

No problem in this place. I checked it! Thank you! If there is a problem with the module loading, the apache server will not be able to run! I have detected this ......

I liked PHP for the second time, and I replied for the first time.

Can the landlord post your code so that it is difficult to solve the problem!

Can the landlord post your code so that it is difficult to solve the problem!

I tried one of the simplest examples.
Echo "12345! ";
?>
360 is displayed on the 12345 browser page !, The IE download dialog box is still displayed!

When you unload IE9, you say that all the websites that open the internet will allow download. it must be a problem with the browser. it has nothing to do with environment settings. Install IE10! Maybe the problem is solved.

When you unload IE9, you say that all the websites that open the internet will allow download. it must be a problem with the browser. it has nothing to do with environment settings. Install IE10! Maybe the problem is solved.

I agree with this. I also think it should be about browser settings. For IE10, watch ......

Not solved? I have encountered similar problems.

Solved .....
Add this sentence at the top
Header ("Content-Type: text/html; charset = utf-8 ");

Solved .....
Add this sentence at the top
Header ("Content-Type: text/html; charset = utf-8 ");
Is it added to the php. ini file?


Solved .....
Add this sentence at the top
Header ("Content-Type: text/html; charset = utf-8 ");
Is it added to the php. ini file?
Add



Solved .....
Add this sentence at the top
Header ("Content-Type: text/html; charset = utf-8 ");
Is it added to the php. ini file?
Add

In

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.