Problem with PHP server

Discuss server installationa nd configuration issues here

Moderators: macek, egami, gesf

anurag02
New php-forum User
New php-forum User
Posts: 1
Joined: Sun Apr 10, 2011 11:19 pm

Problem with PHP server

Postby anurag02 » Sun Apr 10, 2011 11:32 pm

i'm having some problems with my PHP server. Most of the functions when run gives the same error.

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
The same error comes when i use imagecreate functions, get_image functions.

I talked to service providers but they said I should tell them the cause of this error so that they can rectify it. Please se if any one can make out what changes should be done to server to remove those errors.

CODE USED

$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);

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Problem with PHP server

Postby johnj » Tue Apr 12, 2011 2:48 am

Instead of using fopen,you can also try curl_setopt($ch, CURLOPT_URL, "http://yoururl.com/");


Return to “Server installation and configuration”

Who is online

Users browsing this forum: No registered users and 1 guest