在学习教程 http://www.php.cn/code/1198.html 的过程中,按照实例中的代码引用另一个叫做config.php文件的内容不成功,被apache服务器给解析了,显示了另一个config.php文件的界面。What!!!这是怎么回事?
请问想要config.php 里面的数据有什么简便方法吗?
Please help to solve: Failed to reference the content of another php file in the php file-PHP Chinese website Q&A-Please help to solve: Failed to reference the content of another php file in the php file-PHP Chinese website Q&A
Come and watch and learn.
既然你引用了,那引用的那个config.php文件肯定会在当前页面出现啊,引用一般用include、require、include_once、 require_once,具体的用法和区别你可以在网站里搜索下,很多介绍
Please help to solve: Failed to reference the content of another php file in the php file-PHP Chinese website Q&A-Please help to solve: Failed to reference the content of another php file in the php file-PHP Chinese website Q&A
Come and watch and learn.
既然你引用了,那引用的那个config.php文件肯定会在当前页面出现啊,引用一般用include、require、include_once、 require_once,具体的用法和区别你可以在网站里搜索下,很多介绍