php - 时间超过30秒错误?文件获取内容

标签 php datetime curl

我有这个错误:

   Fatal error: Maximum execution time of 30 seconds exceeded in C:\AppServ\www\facebook\classes\burccek.class.php on line 56

(即时通讯使用 file_get_contents)

(在此程序中,我将 file_get_contents 数据发布到 Facebook 用户墙(offline_access))

最佳答案

这意味着file_get_contents操作花费的时间超过了PHP的最大执行时间。如果您需要更长的时间,请在文件顶部添加以下行:set_time_limit($seconds);

但是 30 秒似乎已经很长了,因此您的应用程序可能存在其他问题。

关于php - 时间超过30秒错误?文件获取内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6935710/

相关文章:

php - 在 php 扩展中添加两个共享库。 WHO?

php - 使用外键插入数据库

c# - 如何将日期格式更改为 02-Jun-2015 格式

VB.Net 日期时间类 '#' 符号

PHP 警告 : PHP Startup: Unable to load dynamic library php_curl. dll 无法找到

javascript - 发送问题 -> 加密 -> 使用 jQuery 和 PHP 获取

php - 使用 jQuery 设置 session 变量(不通过 Post 或 Get 传递)

python - 为 mysql 日期时间字段创建并插入 strftime 对象

python - 为什么 cURL 返回 "additional stuff not fine"?

php - 如何修复 Curl SSL CA 证书错误