Random Anonymous Chat Script with Photos

Description
This is a complete PHP + MySQL script for an anonymous random chat website.
Users connect in one click, no registration or profiles required. The script matches two online users into a private text chat, shows online statistics, and supports sending photos with safe server-side validation (size, MIME type, resolution, no executable code). The frontend has a modern, mobile-friendly UI with sound notifications (match found, message sent/received, chat ended) and typing indicator support. You get a clean, production-ready codebase that you can easily rebrand, customize. We plan to add many interesting updates in the future!
Features
🔁 Random anonymous matching
Queue system: users click “Find a partner” and are automatically paired with another searching user.
💬 Private 1-to-1 chat
Text messages in real time (long polling via AJAX).
System messages for connect / disconnect / errors.
🖼️ Photo sending (secure upload)
Only images (JPG, PNG, GIF, WebP).
Max size by config (default 5 MB).
Resolution limits and getimagesize() check.
Random filename generation.
.htaccess in uploads folder to block PHP execution.
🔔 UX extras
Sound effects for: match found, message sent, message received, chat ended.
“User is typing…” indicator (backend hook ready).
Message helper buttons (starter phrases, questions).
Auto-resizing textarea, mobile-optimized layout.
📊 Live statistics
Online users count.
Users currently searching.
Active chats count.
⚙️ Backend logic
Anonymous users via cookie + UUID.
users, chats, messages, search_queue tables.
Flood protection (N messages per X seconds).
Auto cleanup of old search queue entries.
Auto “partner left” detection by last activity.
🌐 SEO
SEO meta tags and keywords for “anonymous chat / no registration dating”.
Requirements
Web server with PHP 7.4+ (recommended 8.x).
MySQL / MariaDB with InnoDB and PDO enabled.
PHP extensions: pdo_mysql, mbstring, json, fileinfo, gd or compatible image module.
Instructions
Upload files
Upload all script files to your hosting (e.g. /public_html/ ).
Create a MySQL database and user.
Import the provided SQL file anonlov.sql.
Configure config.php
Set DB credentials (host, name, user, password).
Configure /uploads folder. Give it write permissions for the web server user (e.g. chmod 755 or 775 depending on hosting).
Test
Open the site in two different browsers/devices.
Click “Find a partner” on both and verify:
Matching and chat connection.
Text messages and sounds.
Photo sending and display.
Stats (online / searching / active chats).
After that you can rebrand texts, colors, favicon, sounds, and start promoting your own anonymous dating/chat service.
| Author | YulaN |
|---|---|
| Category | Scripts & Code / PHP Scripts / Chat |
| Price | $30 |
| Extended License | $90 |
| Likes | 1 |
| First Release | Dec 6, 2025 |
| Last Update | Dec 6, 2025 |
| Files included | .php, .css, .sql |
| Software version | PHP 7.4, PHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3, PHP 8.4 |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
Free LinkedIn Likes From Real Members | LinkedInLikes
Get free LinkedIn likes on your posts from real members who react by hand. No password needed: you only share a link.
Website · 12,847 views · 46 clicksWebsite · Week 49 · 12,847 views · 46 clicks
🥈
Free Medium Claps From Real Writers | MediumPlace
Free Medium claps on your stories from verified accounts of real writers, each given by hand. No bots, no Medium password, nothing to pay. Paste a link.
Website · 7,964 views · 10 clicksWebsite · Week 49 · 7,964 views · 10 clicks
🥉
Free GitHub Stars From Real Developers | GitWow
Get free GitHub stars on your repository from real developers who star by hand. No token or password, and it's free.
Website · 15,624 views · 28 clicksWebsite · Week 49 · 15,624 views · 28 clicks
#4
Free Substack Likes From Real Writers | StackRooms
Free Substack likes on your posts and Notes from verified accounts of real writers, given by hand. Free to ask, free to receive. Just share a link.
Website · 7,784 views · 2 clicksWebsite · Week 49 · 7,784 views · 2 clicks
#5
Free Twitter Likes From Real People | SupaTwitter
Free Twitter likes on your tweets from verified accounts of real people, each given by hand. No bots, no Twitter password, nothing to pay. Paste a link.
Website · 7,679 views · 4 clicksWebsite · Week 49 · 7,679 views · 4 clicks
#6
Free X Likes From Real People, Given by Hand | XFast
Free X likes on your posts from verified accounts of real people, each one given by hand. No bots, no X password, no conditions. Paste a link to start.
Website · 7,591 views · 0 clicksWebsite · Week 49 · 7,591 views · 0 clicks