我想在PHP中使用include()
創建一個動態網頁。 此PHP頁面有如下的代碼 - 從字面上看,這就是所有的文件包括:這是使用PHP創建動態網頁的好方法嗎?
<?php
session_start();
$dbName = $_REQUEST['DBName'];
$tbName = $_REQUEST['TBName'];
$dbType = $_REQUEST['DBType'];
include('header.php');
switch($dbType)
{
case 'Calender':
include('CalenderPage.php');
exit;
case 'News':
include('NewsPage.php');
exit;
case 'Gallery':
include('GalleryPage.php');
exit;
}
include('footer.php');
?>
你認爲這是創建動態的PHP頁面的一個好辦法嗎?
http://stackoverflow.com/faq#dontask – vascowhite
屬於http://codereview.stackexchange.com/ – Quentin
艾科......抱歉的人。我認爲我的問題適合發佈。謝謝你的意見。我應該刪除這個問題嗎?我會如果需要的話:) – Raccoon