时间:2021-07-01 10:21:17 帮助过:27人阅读
下面的代码先获得当前文件路径,然后通过相对路径包含其它php文件,在实际使用中非常有用
<?php $currentDir = dirname(__FILE__); include $currentDir . '/functions.php'; include $currentDir . '/classes.php'; ?>
希望本文所述对大家的php程序设计有所帮助。
< 上一篇
PHP中文乱码解决方案_PHP
下一篇 >
PHP开发框架laravel安装与配置教程_PHP
记住我的登录 忘记密码?
登录
我已阅读用户协议及版权声明
注册