Member Avatar for TechySafi

I'm a noob developer. Trying to develop a simple php-mysql based chat script.
I'm stroing all of my chat message's in a table. So to retrive em, im running a mysql query. Here is no problem but im concerned that it may create some performance & speed issues when a user will keep chatting all day long, i mean in case of looong chat thread, mysql query will take a little time and that will be disgusting!

So folks whats your suggestion for me? [Please don't say like just "use ajax"/"go with text file"...please write little details too since im a noob hehe]

It is rather impolite to exclude some answers. PHP is not the correct language for chatting. You could do it with PHP as well, but the resources you will use and the users experience won’t be good. So if you really like a chatting system maybe is time to learn Java.

Member Avatar for TechySafi

So if you really like a chatting system maybe is time to learn Java.

right now i'm learning java too, so thanks for your advice!

JS, Ajax and PHP can make a nice functional chat!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.