40% off everything — use code SAVE40 at checkout · ends in …
Skip to content
phpguru.store
PHP, MySQL

Simple Chat Rooms

Group chat rooms with nicknames, live updates and moderation, in plain PHP and MySQL

Launch Simple Chat Rooms on your own domain today — and extend it however you like.

  • Instant delivery
  • Commercial license included
  • PHP 8 compatibility verified
₹899$24

One-time payment · Instant download · Regular license (Agency option)

Secured by Razorpay · we never see your card/UPI details

A PHP + MySQL chat: public rooms anyone can join with a nickname, live message updates by polling, slow-mode and rate limits, and an admin panel to remove messages and people.

What you get

Taken from this product's own README (included in the download). A PHPGuru-developed product.

Included

  • Any number of chat rooms; open or read-only
  • Join with a nickname (2 to 20 letters, digits, space, _ or -); nicknames are unique per room
  • Live updates: the page checks for new messages every 3 seconds; no websocket server needed
  • Who is online list
  • Messages up to 500 characters, one per second, at most 20 a minute per person
  • Everything typed is plain text: HTML and script in a message can never run
  • Admin moderation: remove a message, remove or re-allow a person, clear a room
  • Works on ordinary shared hosting
  • CSRF protection on every form, prepared statements throughout, and a login lockout after repeated failed attempts

What it is not

IMPORTANT: this is deliberately simple. It updates by polling every 3 seconds, not instantly, and is meant for small to medium rooms (dozens of people), not thousands. There are no accounts or passwords (nicknames are not verified identities), no private messages, file or image sharing, typing indicators, message editing, emoji picker, notifications, or profanity filter. Messages stay until you clear them. Because it is public by design, use it only where an open chat is appropriate.

Requirements & testing
PHP 7.4+ (tested on PHP 8.5), MySQL 5.7+ or MariaDB 10+ (tested on MySQL 8.0), the mysqli extension (enabled by default on virtually all PHP hosting).
In the download
Full PHP source, database schema (sql/schema.sql), README with installation steps.
Installation (5 steps)
Upload all files to your PHP hosting (shared hosting, VPS, or XAMPP) → Create a new MySQL database → Import sql/schema.sql into that database via phpMyAdmin or the command line → Open config.php and set DB_HOST, DB_NAME, DB_USER, DB_PASS → Visit login.php in your browser. Prefer us to do it? Add installation at checkout.
Support & licence
Email support is included with your purchase — reply with your payment ID and what you're seeing, and we'll help you get it running. Licence terms: Regular vs Agency.

Screenshots

Sound familiar?

  • Building login, CMS, cart or chat features from scratch takes far longer than expected.
  • Hosted platforms lock you in and charge monthly.
  • Free scripts online are often insecure or outdated.
  • You want to own and change the code, not work around a platform.

Simple Chat Rooms fixes that today: complete source code, the database included, a commercial license — installed on your hosting in an afternoon, or by us.

Who buys it — and what they get

Business owners

Your own site feature on your own hosting, with no platform fees.

Freelancers & agencies

A solid, secure starting point for client websites — ship faster and bill for customisation.

Students & learners

Clean, secure PHP 8 code for a feature you'll build again and again.

Freelancers: the Regular license covers client projects, so one purchase can become paid work. Reselling it as a hosted service needs the Agency license.

Full overview: who it's for, every feature explained, how it works

Simple Chat Rooms — Overview

A ready-to-deploy PHP and MySQL chat. Create rooms in the admin, share the room link, and visitors pick a nickname and start talking. New messages appear within a few seconds using simple polling, so it runs on any shared hosting. Slow mode and rate limits keep rooms usable, and you can remove messages or people at any time.

Who This Is For

  • Communities, classes, event organisers and small businesses who want a chat room on their own site without a third-party service.
  • Freelancers who need a simple, safe chat foundation for a client.
  • Developers who want a small, readable PHP polling-chat example that is properly tested.

IMPORTANT: this is deliberately simple. It updates by polling every 3 seconds, not instantly, and is meant for small to medium rooms (dozens of people), not thousands. There are no accounts or passwords (nicknames are not verified identities), no private messages, file or image sharing, typing indicators, message editing, emoji picker, notifications, or profanity filter. Messages stay until you clear them. Because it is public by design, use it only where an open chat is appropriate.

Key Features

Cannot be turned into a script attack

Message text is returned as JSON with every HTML character escaped and is inserted into the page as text, never as HTML. In our tests a message containing an image tag with onerror and a script block was stored and shown exactly as typed and never executed.

Rules that hold up under load

Nicknames are unique per room even when eight people try the same one at the same moment (exactly one wins, no errors). Each person is limited to one message a second and twenty a minute. A nickname is released five minutes after its owner leaves.

Moderation that sticks

A removed message is blanked for everyone. A removed person cannot send or read, and cannot be replaced by someone else grabbing their nickname, until you allow them back.

Simple to host

No websocket server, Node process or paid service. Upload, import the SQL, and it works wherever PHP and MySQL run.

What's Included

The full, unobfuscated PHP source and a MySQL schema file ready to import, with the default admin login seeded. Setup takes about 10-15 minutes on any standard PHP + MySQL hosting.

Technical Requirements

PHP 7.4+ (tested on PHP 8.5), MySQL 5.7+ or MariaDB 10+ (tested on MySQL 8.0), and the mysqli extension. Plain PHP, no framework dependency. Every form is CSRF-protected and all database access uses prepared statements.

Exact Buy & Setup Process

Step 1 — Buy Now

Click Buy Now, enter your name, email, and phone, and pay via Razorpay (UPI, cards, netbanking, wallets).

Step 2 — Get Your Download

The download link appears instantly and is emailed to you — valid 7 days, up to 5 downloads.

Step 3 — Upload and Configure

Extract the zip, upload to your hosting, create a MySQL database, and update the four values in config.php.

Step 4 — Import and Log In

Import sql/schema.sql via phpMyAdmin, then log in (admin / admin123) and change the password from the top bar.

Frequently Asked Questions

Is it real-time?

Nearly: new messages appear within about 3 seconds because the page polls. It is not a websocket chat.

Are messages private?

No. Everyone in a room sees every message, and the admin can see all rooms.

Can I require people to register?

Not in this version; visitors choose a nickname. Accounts would be a customization.

Is the commercial license included?

Yes — every purchase includes a genuine commercial license for your own business or client work.

Is it tested on PHP 8?

Yes — every page was tested end to end on PHP 8.5 with MySQL 8, including bad-input and concurrent-request checks.

Do you offer a refund?

Purchases are non-refundable once paid — see the refund policy. If something is genuinely wrong, raise an issue from your orders page and we will help fix it.

Is support included?

Yes — email support is included with every purchase.

Key Features

  • Any number of chat rooms; open or read-only
  • Join with a nickname (2 to 20 letters, digits, space, _ or -); nicknames are unique per room
  • Live updates: the page checks for new messages every 3 seconds; no websocket server needed
  • Who is online list
  • Messages up to 500 characters, one per second, at most 20 a minute per person
  • Everything typed is plain text: HTML and script in a message can never run
  • Admin moderation: remove a message, remove or re-allow a person, clear a room
  • Works on ordinary shared hosting

This vs. a Free Download

  phpguru.store Typical free download
Commercial & client-project use ✓ Full license included Often restricted to personal/non-commercial use
Complete, matching database file ✓ Included and tested Frequently missing, outdated, or mismatched
Runs on current PHP versions ✓ Verified before listing Old mysql_*-era code is common, fatal-errors on PHP 7/8
Support if setup goes wrong ✓ Email support included None — you're on your own

Frequently Asked Questions

What do I get after purchase?

A downloadable ZIP with the complete PHP source code and a MySQL database file (.sql), ready to install on standard PHP/MySQL hosting.

How is the code delivered?

Instantly after your Razorpay payment is confirmed — a secure download link is shown on-screen and emailed to you.

Can I customize this source code?

Yes, the full source code is included and free to modify for your own use or client projects.

Can I use this for a client project or resell a deployment?

Yes — purchasing gives you a license to use, modify, and deploy the source code for your own projects or client work, with no non-commercial restriction. If you also want to white-label it or run it as a hosted/SaaS service for your own customers, choose the Agency license at checkout — compare the two.

Do I need to know PHP to use this?

No PHP knowledge is needed to install and run it as-is — just basic comfort uploading files and importing a MySQL database via phpMyAdmin. Customizing the code beyond that does require PHP.

Will this work on shared hosting like Hostinger?

Yes — every product is plain PHP and MySQL with no special server modules or paid framework license required, and is built and tested on standard shared hosting before it's listed.

How is this different from a free copy of similar code I can find elsewhere?

Free downloads are commonly restricted to personal/non-commercial use, ship without a matching database file, and were never tested on current PHP versions. This includes a genuine commercial license, a tested matching database, verified PHP 8 compatibility, and email support if setup goes wrong.

AI Setup Assistant Prompt

A ready-made prompt for your own AI assistant (Claude, ChatGPT, Cursor — whatever you use) that walks it through getting this fully live on your domain: hosting, database, config, login, all of it.

I just purchased "Simple Chat Rooms" (a PHP + MySQL application, delivered as simple_chat.zip) from phpguru.store and I want you to help me get it fully live on my own domain. Walk me through this step by step — one step at a time, and check in with me before moving to the next one, since I may need to tell you details about my own setup along the way.

Full prompt unlocks after purchase — in your Orders

Running a business site already? Check how AI-search-ready it is — free.

Free AI Visibility Snapshot →
₹899$24

One-time payment · Full source code · Instant delivery · Billed in USD, international cards accepted

License Compare the two licenses →
See preview pages

Real screens with sample data, read-only. The full system is in the download.

Secured by Razorpay. We never see your card/UPI details.

  • Full PHP + MySQL source code
  • Installable on any PHP hosting
  • Free to customize
  • PHP 8 compatibility verified before listing
  • Genuine commercial license — client work OK
  • Real email support if setup goes wrong

What happens after you pay

  1. 1. Download link appears instantly, plus emailed to you
  2. 2. Extract, upload to your hosting, import the included database
  3. 3. Log in and it's running — usually 15–30 minutes end to end
See the exact steps ↓

Purchases are non-refundable, but if anything's wrong you can raise an issue from your orders page and we'll help you fix it.

Want us to set it up for you?

Prefer not to handle hosting/database setup yourself? We'll do it for you.

  • Installation on your hosting from ₹1,999$29
  • Custom features / modifications from ₹4,999$69
Email us for a quote

Pricing depends on your hosting and what you need changed — we'll quote you directly, no surprise charges.