PHP coding problem, novice for advice

Source: Internet
Author: User
I install the procedure to install Apache PHP MySQL in my WinXP system, and then test the
Phpinfo, and myl can be used
And then hotdocs a new. php file in the inside of the
for ($i =1; $i <=5; $i + +) {
echo "nihao~~~"
}
?> (the code here is Utf-8)
Should theoretically output 5 Nihao, but the browser shows blank, I view the source file, the result becomes









That is, the code changes, so it doesn't show
My question is: Is it a php.ini problem or does the MySQL installation have no option to encode the problem? How to solve it?

I'm using Apache is 2.2.17 PHP is 5.3.5 MySQL is the latest 5.6
I'll start by uninstalling MySQL and then reinstalling it.
But I do not understand the problem in which link, is PHP, or mysql!


Reply to discussion (solution)

Obviously your PHP is not configured correctly

This has nothing to do with MySQL, because you don't use it at all.

Obviously your PHP is not configured correctly

This has nothing to do with MySQL, because you don't use it at all.

Thanks, because now is just learning, if the code does not run, I can not learn

Extension=php_bz2.dll
Extension=php_gd2.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll
Default_charset = "Utf-8"
These are all enabled, I really do not know where the problem is ...

Obviously your PHP is not configured correctly

This has nothing to do with MySQL, because you don't use it at all.
Thank you, re-copied PHP, reset the next, sure enough to solve the problem
Seems to be changed php.ini when the wrong file ... 3q

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