shlomikalfa Posted May 21, 2008 Share Posted May 21, 2008 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! Link to comment https://forums.phpfreaks.com/topic/106657-need-help-in-how-to-make-some-client-client-activities-in-php/ Share on other sites More sharing options...
shlomikalfa Posted May 21, 2008 Author Share Posted May 21, 2008 well... i'll make it easier to help me... >> how do i make a php page, send some info -> perform some actions and then send some more info ? Link to comment https://forums.phpfreaks.com/topic/106657-need-help-in-how-to-make-some-client-client-activities-in-php/#findComment-546721 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.