peacehunter Posted July 8, 2010 Share Posted July 8, 2010 I am not sure that am I posting this in a right section???? If it is in false section then plzz move it in right section......There is a random chatting site omegle.com , after using this site I am very curious to know that about the technique of making this kind of site.Plzzz tell me what is the process of making this kind of site ,how to work this kind of site and what scripting languages should be used to making this kind of site.. Link to comment Share on other sites More sharing options...
chibineku Posted July 8, 2010 Share Posted July 8, 2010 Well, you need to know HTML and CSS for the layout, a server side language like PHP for interacting with a database system, you'll need to know how to write queries for the database, such as MySQL, and JavaScript for fetching and loading messages without refreshing the page. The basic idea is:When someone clicks to start a conversation, you need to find out how many users are currently not in a conversation, and choose one at random. A temporary table will probably be created by the database program to store the messages back and forward. A JavaScript loop will start checking for new messages by the other user and if it finds one will output it to the page. This is called AJAX. There are further complexities, of course, but that's the very basic idea. Link to comment Share on other sites More sharing options...
dzhax Posted July 9, 2010 Share Posted July 9, 2010 Yes with a chat site AJAX will be your savior. be careful how often it checks for updates tho. My web server got banned because my ajax script i was working on crashed the server. My bad. lol. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.