Everything in this file is set up in a way in which $_GET[ q ] brings up the main domain name and the other directories in the website are brought up in this manner:
else if (substr($_GET[ q ], 0, 7) == quotes/ )
If I wanted to have a folder called: ultimate-deals-and-low-prices, would I use
else if (substr($_GET[ q ], 0, 30) == ultimate-deals-and-low-prices/ )
这样做是否有意义,或者我要以另一种方式把我的名录叫上,而不必要求网站显示目录名称。 我的理解是,这是什么样子,但我只看到它用于特性不到10。 如果我的名录具有更多的特性,我是否仍然使用替代物?
1. 本文件的开头部分是:
require_once(getcwd() ."/db/db_pagetitle.php");
print get_page_title($_GET[ q ]);
if (isset($_GET[ q ]) && $_GET[ q ]) {
if (file_exists(getcwd() . /pages/ . $_GET[ q ] . .php )) {
require_once(getcwd() . /pages/ . $_GET[ q ] . .php );
内容提要
else if (substr($_GET[ q ], 0, 7) == quotes/ )
我怎么说我的名录?
感谢?