NYCPHP Meetup

NYPHP.org

[nycphp-talk] Wierd Error

Adam Fields fields at surgam.net
Tue Oct 5 19:09:09 EDT 2004


On Tue, Oct 05, 2004 at 06:52:03PM -0400, Joseph Crawford wrote:
> Fatal error: Call to undefined function socket_create() in
> D:\htdocs\NewsCenter\Core\Class\TcpSocket.php on line 259
> 
> 259:      $this->m_socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);	

Check your PHP version. socket_create doesn't exist prior to 4.1.

Older version do have socket functionality, but you'll need to rewrite
the socket function to accomodate that.

There are older versions of the docs out there somewhere, but I don't
remember offhand where.


-- 
				- Adam

-----
http://www.adamfields.com
http://www.aquick.org/photoblog
http://www.aquick.org/gallery
http://del.icio.us/fields



More information about the talk mailing list