Skip to content

Instantly share code, notes, and snippets.

@caioerick
Created October 21, 2013 00:03
Show Gist options
  • Save caioerick/7076847 to your computer and use it in GitHub Desktop.
Save caioerick/7076847 to your computer and use it in GitHub Desktop.
<?php
$url = (isset($_GET['url'])) ? $_GET['url'] : "home";
$file = $url.".php";
if(file_exists($file)) {
echo 'arquivo <b>'.$url.'</b> existe';
}
else {
echo 'A pagina <b>'.$url.'</b> nao existe';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment