Jump to content

Need help in "How To" make some client-client activities in PHP...


shlomikalfa

Recommended Posts

hey guys, i need some help in forming a system of text exchange [as if chat] between people. but it's not a normal chat but something else... i'll describe what i need and if you can, please place any idea you have about how it should be done best.

 

## connects the server = sends a "POST" request to a TCP page which works with a MySQL DB.

=> A. userA connects the server and sends a request msg "Where is the best ice-cream?". then it waits and sends a "Do i have any reply?" Msg to the server every $X time... until it has it's answer or it's timed out.
<= .S. the server store his Q on the MySQL DB.
=> B. userB connects the server and sends a "Are there any Qs in DB?" Msg...
<= .S. the server checks if there are any Qs and if so it sends [using echo or else...] it to userB, then it waits for a reply from userB [with timeout]...... as it gets that reply it places it in the proper location in the DB for userA to pick it up.

 

Well... the userA/B Functions/Actions are all done using VB. so it's no issue... but i am a bit clueless about PHP and i need to know how to make the ""Server"" PHP pages work properly...

P.S> if you think my entire concept is wrong... please correct me!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.