Problem with PHP server

Discuss server installationa nd configuration issues here

Moderators: macek, egami, gesf

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( [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\\httpdocs\test\merger2.php on line 3

Fatal error: Maximum execution time of 30 seconds exceeded in D:\inetpub\vhosts\\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.


$ch = curl_init("");
$fp = fopen("", "r");

curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);


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, "");

Return to “Server installation and configuration”

Who is online

Users browsing this forum: No registered users and 3 guests