Ana Sayfa / Kod ve Scriptler / Random Anonymous Chat Script with Photos

Random Anonymous Chat Script with Photos

Kuyruk, fotoğraf paylaşımı, ses uyarıları ve istatistiklerle anonim rastgele sohbet. Temiz PHP + MySQL script'i, dağıtıma hazır.

  • Yayın tarihi6 Aralık 2025
  • Nerede çalışırPHP 7.4, PHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3, PHP 8.4
  • Paket içeriği.php, .css, .sql
  • Son güncelleme6 Aralık 2025
  • Canlı demoVar
Random Anonymous Chat Script with Photos

Overview

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.