2013-03-05 61 views
0

我正在开发我的第一个独立的Web应用程序,并面临路由问题。例如,我的索引位于sites/folder/folder/index.php,因此它的网址为http://site.com/folder/folder/index.php。那么index.php之后最好的方法是什么?只需使用forforeach,直到找到index.php或者可能有更好的方法?如何检测电流路径?

回答

0

您是否尝试过解析网址parse_url?这可能会帮助你。