Hi there, I need to convert the following lines for the use in php 4.2.2. As I am aware, the socket_fd* is no longer used in php > 4.2 and I have read many articles about the changes, sadly I still not able to convert the following lines to work..Pls somebody help! Thanks!
$set=socket_fd_alloc();
socket_fd_zero($set);
socket_fd_set($set,$sock);
socket_select($set,null,null,5);
if (!socket_fd_isset($set,$sock)) {
echo "No answer from server, aborting\n";
exit(0);
}
socket_fd_free($set);