根据URL可以确定显示内容吗?根据网址显示内容
我有一个索引文件,该文件是:
<?php include './includes/header.php'; ?>
<?php include './includes/menu.php'; ?>
<?php include './includes/content.php'; ?>
<?php include './includes/sidebar.php'; ?>
<?php include './includes/footer.php'; ?>
注:我有不同的 “content.php
” 的
是否有可能做这样的事情:
If Url = url {
show only content for the url
}
,然后有案例系统如
case: home.php
show some
等
我知道Wordpress可以做到这一点。是否可以使用PHP和MySQL和HTML?
编辑:不是content.php的我想表明从我的分贝
这是可能的。但是,你能解释一下你想要比较的东西吗?你的意思是像http://www.google.com = http://www.google.com? – Sabari 2013-04-04 12:10:14
你到底想要做什么? – 2013-04-04 12:10:21
为什么你不想为此使用相同的'include'? – 2013-04-04 12:10:22