hassank1 Posted January 18, 2008 Share Posted January 18, 2008 Hiii I want to build a chatting system for my site however I want to build an instant messaging that means I don't want chatroom but an instant messaging like msn where when 2 users talks , user1 start the conversation and user2 get a popup window or something.. so what's the best methods 2 do that... and can I open a new window or something on the receiver pc 2 start the chatting? if u need more explination (or if I shoud post that in another forum section) just let me know thanks Quote Link to comment https://forums.phpfreaks.com/topic/86620-chatting-system/ Share on other sites More sharing options...
Liquid Fire Posted January 18, 2008 Share Posted January 18, 2008 Well first of all you are going to need to use javascript, I would recommend jQuery. Now how I would do it is have a database that stores all messages. Now you would also have to have a script that checks for new messages on every page(be useful in something like the header or something included in every page) every 5 or 10 secs. If it finds one, I would one upon up a new window or javascript window and on that I would search for and new message every 1-2 secs. Just a quick overview I something I would do, not fully complete but those are the main points. Quote Link to comment https://forums.phpfreaks.com/topic/86620-chatting-system/#findComment-442634 Share on other sites More sharing options...
hassank1 Posted January 18, 2008 Author Share Posted January 18, 2008 first of all thx for ur reply... my site isn't just a chat system.it contains other feature.. so I want to know..does that slow the site if a lot of users try 2 access the db at a specific rate of time and I was googling for some info so I've found that they use (ajax !!) <- so what do u think about using it? and does opening an new window requires 2 allow popup windows on the client pc ? thx 4 ur time. Quote Link to comment https://forums.phpfreaks.com/topic/86620-chatting-system/#findComment-442846 Share on other sites More sharing options...
Liquid Fire Posted January 19, 2008 Share Posted January 19, 2008 when I said you have a script that checks for a new message, I did mean ajax. There are other ways of doing a chatting system with out a popup window but I don't have to to go into details about that but most chatting system use a popup window in some form. Quote Link to comment https://forums.phpfreaks.com/topic/86620-chatting-system/#findComment-443183 Share on other sites More sharing options...
dbo Posted January 19, 2008 Share Posted January 19, 2008 I think you should use meebo is what I think. Quote Link to comment https://forums.phpfreaks.com/topic/86620-chatting-system/#findComment-443281 Share on other sites More sharing options...
hassank1 Posted January 19, 2008 Author Share Posted January 19, 2008 I think you should use meebo is what I think. I know that meebo is for msn yahoo,etc... however does it have API to develop my own IM ... ? Quote Link to comment https://forums.phpfreaks.com/topic/86620-chatting-system/#findComment-443528 Share on other sites More sharing options...
dbo Posted January 19, 2008 Share Posted January 19, 2008 I don't think it has an API but it has embeddable widgets for a website. I don't mean to knock your idea at all, maybe there is a valid reason... but really ask yourself: Does the world need another chat system? Quote Link to comment https://forums.phpfreaks.com/topic/86620-chatting-system/#findComment-443531 Share on other sites More sharing options...
Liquid Fire Posted January 19, 2008 Share Posted January 19, 2008 Does the world need another chat system? This and "Why re invent the wheel" kinda aggravate me a little. there are only 3 reasons not to program something yourself from scratch. 1. You have a time constraint limiting you or 2. You don't think you can make something better than what you can find and use or 3. you don't want to recreate the program. Sometimes building something from scratch is the best way to make it better. Just because something already exist does not mean you have/need to use it. Quote Link to comment https://forums.phpfreaks.com/topic/86620-chatting-system/#findComment-443653 Share on other sites More sharing options...
dbo Posted January 20, 2008 Share Posted January 20, 2008 I'm not against "reinventing the wheel" if reason merits it. If we didn't reinvent the wheel from time to time, we'd be driving on stone wheels. It really depends on your motivations for programming. If you want to do something, just to prove you can or something, more power to you. I however try to really focus on things that add value of some sort. In my opinion if you have a website and a chat feature is one small component of it, is it really justifiable to create it from scratch? For me the answer is obviously no. If you're worried about maintaining someone elses code or don't like the dependency that using something like meebo creates, that is a valid argument. In fact, these are about the only reasons I would decide to write something from scratch. However, I find it unlikely that a better chat system would be built. That being said I did write a rudimentary chat application of my own once. I was sitting in a class and had this lightbulb click in my head as to how easy it would be to build. I made it a challenge that I could write it in under 1 hour. It ended up taking me 45 minutes to prove out the concept Quote Link to comment https://forums.phpfreaks.com/topic/86620-chatting-system/#findComment-444098 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.