我的PHP服务器出现了一些问题。运行时的大部分功能都会产生相同的错误。PHP服务器问题
Warning: fopen(http://www.ietf.org/rfc/rfc2475.txt) [function.fopen]: failed to open stream:
A connection attempt failed because the connected party did not properly respond after a
period of time, or established connection failed because connected host has failed to respond. D:\inetpub\vhosts\coolfbapps.in\httpdocs\test\merger2.php on line 3
Fatal error: Maximum execution time of 30 seconds exceeded in D:\inetpub\vhosts\coolfbapps.in\httpdocs\test\merger2.php on line 3
同样的错误是当我使用imagecreate功能,get_image功能。
我跟服务提供商交谈过,但他们说我应该告诉他们这个错误的原因,以便他们纠正错误。请确定是否有人能够确定应该对服务器进行哪些更改以消除这些错误。
代码中使用
$ch = curl_init("http://www.gravatar.com/avatar/95111e2f99bb4b277764c76ad9ad3569?s=32&d=identicon&r=PG");
$fp = fopen("http://www.ietf.org/rfc/rfc2475.txt", "r");
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
fclose($fp);
你需要看一下''in - '区域。在这里发布代码 – JohnP 2011-04-11 07:09:10