<?php
/**
 * Quick test to verify PHP server is working
 * Visit: http://localhost:8000/test-server.php
 */

echo "<h1>PHP Server Test</h1>";
echo "<p>✅ PHP is working!</p>";
echo "<p>PHP Version: " . phpversion() . "</p>";
echo "<p>Server: " . $_SERVER['SERVER_SOFTWARE'] . "</p>";
echo "<p>Document Root: " . $_SERVER['DOCUMENT_ROOT'] . "</p>";
echo "<hr>";
echo "<h2>Test Links:</h2>";
echo "<ul>";
echo "<li><a href='/admin/'>Admin Panel</a></li>";
echo "<li><a href='/admin/login.php'>Admin Login</a></li>";
echo "<li><a href='/api/gallery.php'>Gallery API</a></li>";
echo "</ul>";
echo "<hr>";
echo "<h2>Directory Check:</h2>";
echo "<ul>";
echo "<li>Admin directory exists: " . (is_dir(__DIR__ . '/admin') ? '✅' : '❌') . "</li>";
echo "<li>Admin index.php exists: " . (file_exists(__DIR__ . '/admin/index.php') ? '✅' : '❌') . "</li>";
echo "<li>Admin login.php exists: " . (file_exists(__DIR__ . '/admin/login.php') ? '✅' : '❌') . "</li>";
echo "<li>Router.php exists: " . (file_exists(__DIR__ . '/router.php') ? '✅' : '❌') . "</li>";
echo "<li>Config directory exists: " . (is_dir(__DIR__ . '/config') ? '✅' : '❌') . "</li>";
echo "</ul>";

