|
|
Socket error
- General Posted by Manuel (Sunday October 22 2000 @ 06:32PM EDT) views: 147 |
When trying to create or update a block I recieve:
Fatal error: Call to unsupported or undefined function set_socket_timeout() in ../include/common.inc.php on line 537
I changed socket_set_timeout() to set_socket_timeout() because I was receving this error (and following the post at http://phpweblog.org/stories.php?story=00/10/14/9935640), but it's obvious that it did not make any difference.
What else can I do?
|
|
By brian (Monday October 23 2000 @ 12:14PM EDT)
|
Which version of PHP are you using?
|
[ reply | parent ]
|
|
By A. Eriksson (Monday October 23 2000 @ 04:25PM EDT)
|
Thats the answer then. You have to uncomment the whole thing.
|
[ reply | parent ]
|
|
|
By Manuel (Tuesday October 24 2000 @ 07:42AM EDT)
|
Sorry for the newbie question, but what do you mean by "uncomment the whole thing"? Could it be possible to post an example?
|
[ reply | parent ]
|
|
|
By jason (Tuesday October 24 2000 @ 12:15PM EDT)
|
He means to comment out the line.
Insert a # in front of the line.
|
[ reply | parent ]
|
|
|
By Manuel (Tuesday October 24 2000 @ 01:30PM EDT)
|
The socket_set_timeout() is included in conditional statements like the following:
if ($fp) {if (floor(phpversion())==3)
{set_socket_timeout($fp, 5);
} else {
socket_set_timeout($fp, 5);}
And...
if (!$fp) {return "Error\n";
} else {if (floor(phpversion())==3) {
set_socket_timeout($fp, 5);
} else {socket_set_timeout($fp, 5);
}
What exactly should I comment out?
|
[ reply | parent ]
|
|
By Manuel (Wednesday October 25 2000 @ 02:52PM EDT)
|
Can someone help me solve the above question? I will really apprecaite any help. I tried uncommenting a few lines, but only receive errors.
|
[ reply | parent ]
|
|
|
|