如何覆盖元标记?
|
我有带有“默认”元标记的index.php页面,具有开关功能,例如single_page.php,看起来像
www.something.com/?page=single_page
。
我如何用single_page.php中的元标记覆盖索引页中的元标记
$conlibrary=\"play/pages/\" ;
IF(!isset($_GET[\'page\'])){
$page = \'deafault\';
} ELSE {
$page = $_GET[\'page\'];
$findme = \'&\';
$pos = strpos($page, $findme);
IF ($pos ===true) {
$data = explode(\"&\", $data);
$dest =$conlibrary.\"/\".$data[0].\".php\";
IF (file_exists($dest)) {
$page = $_GET[\'page\'];
} ELSE {
$page = \'404\';
}
} ELSE {
$dest =$conlibrary.\"/\".$page.\".php\";
IF (file_exists($dest)) {
$page = $_GET[\'page\'];
} ELSE {
$page = \'404\';
}
}
}
include($conlibrary . $page .\".php\");
没有找到相关结果
已邀请:
1 个回复
翰冒绢县