steven_84 Posted April 19, 2006 Share Posted April 19, 2006 HI,I having been using sockets and wanted to split the connection class i have into to seperate functions.but when i do i get errors i think its because the information is being passed between the functions, but I have been unable to work out how to do thisin the first function i have the socket_create, socket_bind and socket_listen commands and in the second function i have the socket_accept and socket_getpeername. the errors i have been getting have been"Warning: socket_accept() expects parameter 1 to be resource, null given in"any ideas?thankssteven Link to comment https://forums.phpfreaks.com/topic/7842-php-sockets-classes/ Share on other sites More sharing options...
steven_84 Posted April 19, 2006 Author Share Posted April 19, 2006 anyone? Link to comment https://forums.phpfreaks.com/topic/7842-php-sockets-classes/#findComment-28750 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.