2013-03-05 46 views
0

我正在開發我的第一個獨立的Web應用程序,並面臨路由問題。例如,我的索引位於sites/folder/folder/index.php,因此它的網址爲http://site.com/folder/folder/index.php。那麼index.php之後最好的方法是什麼?只需使用forforeach,直到找到index.php或者可能有更好的方法?如何檢測電流路徑?

回答

0

您是否嘗試過解析網址parse_url?這可能會幫助你。