Why sometimes PHP programs appear at the beginning: x-powered-byph_php Tutorial

Source: Internet
Author: User
This is because of PHP. INI, there are some incorrect settings, most likely there are invalid DLL files. But why does this happen?
I built an empty test.php file under the WIN32.
Then execute C:php4php.exe test.php, at which point my php.ini configuration is correct. The screen output is:
x-powered-by:php/4.0.0
Content-type:text/html
Hey, isn't that something that's shown on the screen? Yes. However, these two lines are used as HTTP information headers. is not displayed in the browser.
Now I'm loading the php_mysql.dll in the php.ini. And this file does not exist.
Perform 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 some random characters here.
x-powered-by:php/4.0.0
Content-type:text/html
Just after the content-type:text/html, there are some error messages, so x-powered-by:php/4.0.0 content-type:text/html appear on the screen. And this is actually the HTTP information header.
Then I think in the wrong, if Output_buffering=off, then Setcookie () is not able to use.
Do you understand?

http://www.bkjia.com/PHPjc/632400.html www.bkjia.com true http://www.bkjia.com/PHPjc/632400.html techarticle this is because of PHP. INI, there are some incorrect settings, most likely there are invalid DLL files. But why does this happen? I built an empty test.php file under the WIN32. ...

  • 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.