Why sometimes PHP Programs Display X-Powered-ByPH at the beginning?

Source: Internet
Author: User

This is because of PHP. Some settings in INI are incorrect. The most likely reason is that there are invalid DLL files. But why?
I created an empty test. php file under WIN32.
Then execute c: php4php.exe test. php. At this time, my php. ini configuration is correct. Screen output:
X-Powered-By: PHP/4.0.0
Content-type: text/html
Isn't that something displayed on the screen? Yes. However, these two lines are used as the HTTP information header. Is not displayed in the browser.
Now I have installed php_mysql.dll in php. ini. This file does not exist.
Run c: php4php.exe test. php again, and the screen output is:
Content-type: text/html
PHP Fatal error: Unable to load dynamic library 'php _ mysql. dll'
There are still some characters in disorder
X-Powered-By: PHP/4.0.0
Content-type: text/html
Some error messages are generated after Content-type: text/html, which leads to X-Powered-By: PHP/4.0.0 Content-type: text/html appears on the screen. This is actually the HTTP information header.
In this case, if output_buffering is off, setcookie () cannot be used.
Do you understand?

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.