php - Dynamic site title -
i created dynamic site. works fine, have 1 problem. how can have invidiual title each page (in html tag). hope understand mean. take @ index.php
<html> <?php include_once 'config.php'; include_once 'includes/mysqlconnect.php'; $url_slash=$_server['request_uri']; $url= rtrim($url_slash, '/'); //$url = basename($url); ?> <head> <meta charset="utf-8"> <title>kascraft | *********</title> //here need variable or other display title each site <link rel="stylesheet" type="text/css" href="<?php echo $domain;?>themes/reset.css"> <link rel="stylesheet" type="text/css" href="<?php echo $domain;?>themes/<?php echo $theme;?>.css"> </head> <body class="body"> <div class="container-all"> <?php include_once 'includes/header.php';?> <div class="container"> <?php include_once 'includes/navigationbar.php';?> <?php include_once 'includes/rightsidebar.php';?> <div class="content"><?php if ($url==''){ include_once "sites/home.php"; } elseif (file_exists("sites/$url.php") && is_readable('/var/www/html/sites/'.$url.'.php')){ include_once '/var/www/html/sites/'.$url.'.php'; } else { include_once 'sites/404.php'; } ?></div> <?php include_once 'includes/footer.php';?> </div> </div> </body> </html>
can please me.
Comments
Post a Comment