Xampp-apache HTTP server often returns blank pages to PHP requests?

Source: Internet
Author: User
Tags php error blank page zend framework
I installed on the Windows machine is a XAMPP system, in the local Apache Web server, using PHP to write server side, has been working normally.

A recent project, using SSL, Zend Framework, jquery, and so on, recurring but random and non-repeatable, when submitting a PHP Web page, Web server returned a blank page, I checked the HTTP respond, the status code is 200 , it should be normal, but why is the returned content empty?

Sometimes a few refreshes, this blank page becomes the normal page.

I have checked the log file as if there were no HTTP request errors or PHP errors.

Ask the cows, what could be the cause? Or, where do I need to start debugging?

Reply content:

I installed on the Windows machine is a XAMPP system, in the local Apache Web server, using PHP to write server side, has been working normally.

A recent project, using SSL, Zend Framework, jquery, and so on, recurring but random and non-repeatable, when submitting a PHP Web page, Web server returned a blank page, I checked the HTTP respond, the status code is 200 , it should be normal, but why is the returned content empty?

Sometimes a few refreshes, this blank page becomes the normal page.

I have checked the log file as if there were no HTTP request errors or PHP errors.

Ask the cows, what could be the cause? Or, where do I need to start debugging?

The symptoms are highly suspect PHP errors. Review the Phpinfo () output, check the php.ini file path, open php.ini, and modify the error-related settings.

display_errors = Onerror_reporting = E_ALL

Set so that you can see the original blank page PHP error content

If a blank page cannot be reproduced, the php.ini

log_errors = Onerror_log = /path/to/error.log

Note that the PHP process should have error.log write permissions. You can see the error in PHP without checking the file regularly.

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