RE: [PHP-DB] Getting error when getting new version of php
| From: | Jennifer Goodie | Date: | Mon, 21 Apr 2003 22:53:16 +0000 |
| Subject: | RE: [PHP-DB] Getting error when getting new version of php | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-27226@lists.php.net to get a copy of this message | ||
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: [PHP-DB] 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: [PHP-DB] 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
>
>