PHP中路径怎么用?
在HTML一般使用网络路径:
例如:http://local.icframe.com/App/Home/Controller/IndexController.class.php
在PHP一般使用本地路径:
例如:D:ICFrame/App/Home/Controller/IndexController.class.php
相对路径在PHP中被解析为本地路径
相对路径在HTML中被解析为网络路径
在HTML一般使用网络路径:
例如:http://local.icframe.com/App/Home/Controller/IndexController.class.php
在PHP一般使用本地路径:
例如:D:ICFrame/App/Home/Controller/IndexController.class.php
相对路径在PHP中被解析为本地路径
相对路径在HTML中被解析为网络路径
转载于:https://www.cnblogs.com/phpisfirst/p/9792570.html