1 2 3 4 5 6
<?phpif (file_exists(__DIR__ . '/index.html')) { readfile(__DIR__ . '/index.html');} else { echo '<h1>It works!</h1>';}