Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $page_name = basename ( $_SERVER['PHP_SELF'] );
- switch ($page_name) {
- case "photos.php":
- $title = "Photos Title";
- break;
- case "news.php":
- $title = "News Title";
- break;
- case "contact.php":
- $title = "Contact Title";
- break;
- }
- ?>
- <title><?= $title ?></title>
Add Comment
Please, Sign In to add comment