Updated index.php with new test to check connectivity.