编写一个简单的路由类
摘要:
<?phpclass Router{ public function getRouter($types = 1) { if ( isset($_SERVER['PATH_INFO']) ) { $query_string = substr(str_replace(array('.html','.htm', '.asp', '//'), '',$_SERVER['PATH_INFO']),1); } else { $query_string = str_replace($_SER 阅读全文
posted @ 2011-04-11 20:27 wufoo 阅读(375) 评论(0) 推荐(0)
浙公网安备 33010602011771号