Heim  >  Artikel  >  Backend-Entwicklung  >  CENTOS上LNMP平台PHP的奇怪有关问题

CENTOS上LNMP平台PHP的奇怪有关问题

WBOY
WBOYOriginal
2016-06-13 10:46:46727Durchsuche

CENTOS下LNMP平台PHP的奇怪问题
在搭建的LNMP平台下运行PHP代码,平台为:nginx/0.8.54 PHP/5.2.17

PHP代码test.php内容如下:
  $makeurl="http://127.0.0.1/ceshi.php";
  $contents=file_get_contents($makeurl);
  echo $contents;
  //echo var_dump($http_response_header);//返回NULL
ceshi.php内容如下:
  echo "this is ceshi!";
当内容比较少的时候,上面的test.php能正输出内容,但是当ceshi.php里包含了大量文字信息后,test.php就什么都不输出了。无论我的PHP错误开关是否打开,都是空摆,但是直接在浏览器地址栏用http://IP地址/ceshi.php的形式访问是可以显示内容的,不知道为何?望解答,感谢!

------解决方案--------------------
磁盘是FATS格式就出不来,因为这种格式不支持大数据文件。把系统装成NTFS可以。
------解决方案--------------------

探讨

磁盘是FATS格式就出不来,因为这种格式不支持大数据文件。把系统装成NTFS可以。

------解决方案--------------------
test.php 页面执行超时了,已经die掉了
在 test.php 首行加上 set_time_limit(0); 以不限制页面执行时间
------解决方案--------------------
如果是出现错误(目标不存在、超时、内存溢出等)都会报错的
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn