Random Anonymous Chat Script with Photos icon

Random Anonymous Chat Script with Photos

Hot or Not
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.

AuthorYulaN
CategoryScripts & Code / PHP Scripts / Chat
Price$30
Extended License$90
Likes1
First ReleaseDec 6, 2025
Last UpdateDec 6, 2025
Files included.php, .css, .sql
Software versionPHP 7.4, PHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3, PHP 8.4

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