0

我正在开发我的第一个独立 Web 应用程序,我遇到了路由问题。例如,我的索引位于sites/folder/folder/index.php,因此它的 url 将是http://site.com/folder/folder/index.php。那么什么是最好的方法index.php呢?只是使用forforeach直到index.php找到或可能有更好的方法?

4

1 回答 1

0

您是否尝试过通过parse_url解析网址?这可能会对您有所帮助。

于 2013-03-05T08:53:02.077 回答