IE9 can't open php page, god please help

Source: Internet
Author: User
I write code in the WAMP environment, IE9 run PHP page every time a download of the dialogue, but I use 360 browser can parse the normal! In addition all other online PHP page My IE9 also always pop up a download dialog box, but 360 can display normally! What is the reason, the online search will also find no reason, there is any big God can help??????


Reply to discussion (solution)

Not Configured Content-type

How about under Firefox?
How to access it? Does the PHP file have been placed in the directory?

The location of the file in the Apache server is certainly not a problem, because 360 browser can access it, and not only I write not open, the other Web page PHP can not open! But 360 browser can! Firefox I have not tried, but since there is a browser can open it is not a problem of the web, it may be IE9 missing something, but can not find the specific what

Like PHP, my first reply.

Not Configured Content-type

Do not know what you said is not configured is this:

I am also a novice PHP, this is the default! I didn't write this in my code. Then I put this line of code in, no use! Two browsers or a can open a can't!

In fact, I think more should be my IE9 configuration problem, there may be a little something! Of course, I hope you have a lot of guidance ...

This post was last edited by xuzuning on 2012-10-06 11:08:35

For a URL that always pops up a downloaded dialog box with IE9
You execute the following code:
$s = file_get_contents (' real url ');
Echo Base64_encode (substr ($s, 0, 100));
Post the results

or give a valid link


This should be you do not put PHP files in the Apache www (or set virtual directory) directory, as for the 360 browser can open, I always think 360 of the product has been quite magical, and in the absence of PHP server case, Non-IE kernel browser can open php files in garbled form

For a URL that always pops up a downloaded dialog box with IE9
You execute the following code:
$s = file_get_contents (' real url ');
Echo Base64_encode (substr ($s, 0, 100));
Post the results

or give a valid link
According to what you said in the 360 browser I ran a URL (own a relatively simple URL), the output of the result is like this, the expression can not understand
Another run with IE9 or not, still pop up the download dialog box

For a URL that always pops up a downloaded dialog box with IE9
You execute the following code:
$s = file_get_contents (' real url ');
Echo Base64_encode (substr ($s, 0, 100));
Post the results

or give a valid link



According to what you said in the 360 browser I ran a URL (own a relatively simple URL), the output of the result is like this, the expression can not understand
pcfet0nuwvbfiehutuwgufvcteldicitly9xm0m another run with IE9 or not, still pop up the download dialog box

This should be you do not put PHP files in the Apache www (or set virtual directory) directory, as for the 360 browser can open, I always think 360 of the product has been quite magical, and in the absence of PHP server case, Non-IE kernel browser can open php files in garbled form

My php files are placed in the D:\Apache\htdocs, I was on my own computer, no www directory. In addition I have installed PHP. I have also written in the WAMP environment, when (then the computer and now different) IE9 can be run. So I wonder, I think most of it is because my IE9 is missing something.

I know what's going on,
The php.ini file is not configured correctly, and the DLL file portion of the PHP extension is loaded incorrectly. Landlord, you still check the PHP operating environment.

I know what's going on,
The php.ini file is not configured correctly, and the DLL file portion of the PHP extension is loaded incorrectly. Landlord, you still check the PHP operating environment.

Or not, I did have some DLLs loaded, some did not load. Then listen to your comments all the DLLs are loaded, but still no, the same problem still arises ...

Apache configuration file httpd.conf key Place there is no mistake! My configuration is this:

#加载php模块
LoadModule php5_module d:/webserver/php5/php5apache2_2.dllphpinidir "D:/WEBSERVER/PHP5"

#运行php的后缀名可以是. php or. html, etc.
AddType application/x-httpd-php. php
And check the permissions on the directory.
< Directory "d:/htdocs/" >
......

Estimated to be a cache problem

Apache configuration file httpd.conf key Place there is no mistake! My configuration is this:

#加载php模块
LoadModule php5_module d:/webserver/php5/php5apache2_2.dllphpinidir "D:/WEBSERVER/PHP5"

#运行php的后缀名可以是. php or. html, etc.
AddType application/x-http ...

There's no problem with this place, I checked! Thank you! Module loading that place if there's a problem Apache server will not run! I've tested this.

The second time like PHP, my first reply.

Landlord can put your code to see, so guess is difficult to solve the problem!

Landlord can put your code to see, so guess is difficult to solve the problem!

I've tried one of the simplest examples.
echo "12345!";
?>
360 Browser page to display 12345! , IE still download dialog box!

Take the IE9 off, you said. Open the Web site will let the download, it must be a browser problem, with the environment set a little relationship. Put a IE10 on it! Maybe the problem is solved.

Take the IE9 off, you said. Open the Web site will let the download, it must be a browser problem, with the environment set a little relationship. Put a IE10 on it! Maybe the problem is solved.

I agree with this, I also think it should be the browser setup problem, as for IE10, wait and see ...

Not solved? I've had almost the same problem, solving

Solved the problem of .....
Add this to the top of the line.
Header ("content-type:text/html; Charset=utf-8 ");

Solved the problem of .....
Add this to the top of the line.
Header ("content-type:text/html; Charset=utf-8 ");
Is the php.ini file added?


Solved the problem of .....
Add this to the top of the line.
Header ("content-type:text/html; Charset=utf-8 ");
Is the php.ini file added?
In your code file, add



resolved .....
Add this sentence to the top
header ("content-type:text/html; Charset=utf-8 ");
is the php.ini file added?
Add

in your code file!--? php or outside.!!

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.