Chat Script with PHP/MySQL like Facebook

14,196

Solution 1

I know this is not your question.. But php/apache is not the best solution for chatting. You'd have to poll(make requests) frequently, and that is something that just cannot scale in the php/apache environment. I would recommend you to look for another server/platform on the side for just the chat application. Read up about comet programming and have a look at node.js

Solution 2

I'd recommend Google Code to host your project. This is the Version Control system that will look after your code, and allow 3rd party people to help you for free.

Good security always comes with a bug/issue tracker for the project, which I think Google Code also gives you.

Tell us where you host it here please, with a URL. I for one will want to help out.

Solution 3

I would recommend using an ajax chat rather going the php route.

I found a good one googling a bit

https://blueimp.net/ajax/

I don't know, maybe it works for you, it really depends on what features you want.

Share:
14,196
kuzey beytar
Author by

kuzey beytar

Have own business called screets, which was set up in 2013 in Bosnia and have been working like this for 7+ years...

Updated on June 04, 2022

Comments

  • kuzey beytar
    kuzey beytar almost 2 years

    I am currently developing a PUBLIC and OPEN SOURCE ecommerce software and want to embed a chat plugin into it using PHP/MySQL (similar to Facebook). But much simpler. You can see the draft preview below.

    Preview of chat script

    Functions:

    • Send and recieve messages (only friends)
    • Add / Search / Remove / Block Friends

    Security is important issue, because this chat plugin would be embedded into software and that software will be published as OPEN SOURCE.

    My question is that where should I get down to writing it and how to get good security?

  • kuzey beytar
    kuzey beytar about 13 years
    thank you for the answer. I didn't finish yet, but if you give me your email I will be happy to share URL and my ideas.