# Contact Saver – PHP JSON Server (No MySQL)

Endpoints:
- POST save_contacts.php   (body: { "user_id": "...", "contacts": [ { "name": "...", "phone": "..."}, ... ] })
- GET  search_contacts.php?user_id=USER&q=QUERY
- GET  delete_contacts.php?user_id=USER

Setup:
1) Upload all files to your hosting (public_html/ recommended).
2) Create a folder `data/` or let the script create it automatically.
3) Put `.htaccess` inside `data/` to block direct access (Apache). For Nginx: add location rule to deny /data/.
4) Use HTTPS.
