Jump to content

Recommended Posts

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/86620-chatting-system/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/86620-chatting-system/#findComment-442634
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/86620-chatting-system/#findComment-442846
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/86620-chatting-system/#findComment-443653
Share on other sites

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 :)

 

 

Link to comment
https://forums.phpfreaks.com/topic/86620-chatting-system/#findComment-444098
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.