时间:2021-07-01 10:21:17 帮助过:8人阅读
php
if ( ! isset ( $_SERVER [ ' PATH_INFO ' ] ) ){
$pathinfo = ' default ' ;
} else {
$pathinfo = explode ( ' / ' , $_SERVER [ ' PATH_INFO ' ]);
}
if ( is_array ( $pathinfo ) AND ! empty ( $pathinfo ) ){
$page = $pathinfo [ 1 ];
} else {
$page = ' a.php ' ;
}
require " $page .php " ;
?>