Some strange problems related to the LNMP platform PHP on CENTOS

Source: Internet
Author: User
On the LNMP platform of CENTOS, PHP runs the PHP code on the LNMP platform. the platform is nginx/0.8.54PHP/5.2.17PHP code test. php content: & nbsp; $ makeurl = & quot; http: // 127.0.0.1/ceshi. php on LNMP platform under PHP & q CENTOS
Run the PHP code on the LNMP platform: nginx/0.8.54 PHP/5.2.17

The content of PHP code test. php is as follows:
$ Makeurl = "http: // 127.0.0.1/ceshi. php ";
$ Contents = file_get_contents ($ makeurl );
Echo $ contents;
// Echo var_dump ($ http_response_header); // return NULL
The content of ceshi. php is as follows:
Echo "this is ceshi! ";
When the content is relatively small, the above test. php can directly output the content, but when ceshi. php contains a lot of text information, test. php will not output anything. No matter whether my PHP error switch is enabled or not, it is empty, but you can directly use http: // IP address/ceshi in the browser address bar. php access can display content. why? Thank you for your answers!

------ Solution --------------------
The disk is in the FATS format, because this format does not support big data files. You can install the system as NTFS.
------ Solution --------------------
Discussion

The disk is in the FATS format, because this format does not support big data files. You can install the system as NTFS.

------ Solution --------------------
The execution of the test. php page times out and the die has been dropped.
Add set_time_limit (0) to the first line of test. php to limit the page execution time.
------ Solution --------------------
If an error occurs (the target does not exist, times out, or memory overflow occurs), an error is returned.

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.