/ Published in: PHP
Combine with an .htaccess script to transpose URLs. Or simply have PHP parse "DOMAIN.com/var/" strings to URL parameters (that is, page=var). Search for "page title" variable in the page after the header() function.
Expand |
Embed | Plain Text
<?php { $description = 'Default description for your site'; } { $title = 'Default page title for your site'; } ?> <html> <head> </head> <body> <?php $page = $_GET['page']; @include ('sections/'.$page.'.php'); } } else { @include ('sections/landing.php'); } ?> </body> </html>
You need to login to post a comment.
