Spotify-like PHP Full Package (Demo)
===================================

What is included:
- frontend/ : HTML/CSS/JS UI (home, login, register, playlist, profile, search)
- backend/ : PHP endpoints (auth, stream with range, upload, APIs)
- admin/ : static admin UI to upload songs & covers (uses backend/upload.php)
- uploads/songs and uploads/covers : put mp3s and images here (or upload via admin)
- backend/config.example.php : COPY to backend/config.php and fill DB credentials
- backend/migrations_mysql.sql : SQL to run in phpMyAdmin

Quick install:
1. Upload package to public_html and extract (preserve folder structure).
2. Copy backend/config.example.php -> backend/config.php and fill your DB credentials.
3. Import backend/migrations_mysql.sql into your database (phpMyAdmin).
4. Ensure uploads folders are writable (755/775).
5. Create an admin user via register page and then set is_admin=1 for that user in users table.
6. Use /admin/index.html to upload songs and covers.
7. Visit /frontend/home.html to see songs and play.

Security notes:
- config.php must NOT be committed to any repo.
- Check upload file types and sizes in php.ini.
- Use HTTPS for production.

