Hi,
Ok, I just began using PHP, and my main goal is to understand sockets, since my site will rely mostly upon sockets…
My background in sockets is in Java…so I know that the server program has to constantly be running for it to receive and sent information between a client or many clients.
Now, this is where things become weird for me since I have just started php or web programming…
from the client point of view, someone accessing the site, how does the server socket begin at my end and how does the client socket remain connected at the clients or the user’s end?
That’s the big problem I have, I can’t seem to be able to make or visualize the connection between the two instances at the web address that accesses the site.
Can anyone help me understand this.
I have to add that I am running a localhost…I am able to load the site from any within the network computer and any outside network computer so that’s fine…
but I need to know whether I have to start running the server socket at my end first, and then from another computer load or access the client site?