Forum Moderators: coopster

Message Too Old, No Replies

Create a socket.

         

MartinWeb

1:51 am on Oct 15, 2009 (gmt 0)

10+ Year Member



I have never created a socket before, and the PHP website isn't much help. Can someone please help me set one up? Thanks in advance.

sned

6:31 pm on Oct 15, 2009 (gmt 0)

10+ Year Member



What are you looking to do with the socket? Just trying stuff out? Typically there's quite a few built in ways to read/write files over a network without having to deal with the underlying socket structure.

Anyway, were you able to find the fsockopen function? [us3.php.net...]

MartinWeb

11:16 pm on Oct 15, 2009 (gmt 0)

10+ Year Member



I am trying to create an online real time game made with JS, html, and PHP. I am looking for a way to update a players board when their opponent moves. When a player moves, a field is updated in a MySQL database.