我的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