>From your second email, one can see that the error is with fsockopen, which is not a database function, you might have better luck posting on php-general. My suggestion would be to print out $errno and $errstr to see why you cannot connect. If you've never been able to connect and you are just concerned that the warning is now getting printed out when it did not used to, it is because your new install has a higher level of error reporting turned on. Check the manual to see what setting is best for you. > -----Original Message----- > From: alexandra@fpalace.com [mailto:alexandra@fpalace.com] > Sent: Sunday, April 20, 2003 12:24 PM > To: php-db@lists.php.net > Subject: Getting error when getting new version of php > > > Hi this script was working perfectly till we got moved to a > server with a newer version of php 4.3.1 > > $fp = fsockopen ($row["url"], $row[port], $errno, $errstr, 30); > > if (!$fp) { > > echo "<img src=dead2.gif></td><td><center>n/a</center></td>"; > > } else { > > $data = fread($fp,12); > > Does anyone know how to fix it up? > > Thank You > Alexandra > > -----Original Message----- > From: alexandra@fpalace.com [mailto:alexandra@fpalace.com] > Sent: Sunday, April 20, 2003 12:27 PM > To: php-db@lists.php.net > Subject: forgot to put the error > > > Here is the error keesp sending: > Warning: fsockopen() [function.fsockopen]: unable to connect to > *********** > in /home/chat/public_html/********* on line 86 > > Thank You > Alexandra > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php