我总是遇到PHP的include函数问题.我正在建立一个商店网站,我已经创建了一个购物车.我希望它在几页的每个侧边栏中,所以我使用include.
在第37行的/public_html/product/index.php文件中:
include("converter.php");
文件converter.php位于/public_html/include/converter.php
有时它似乎工作,但大多数时候它显示:
警告:include(converter.php)[function.include]:无法打开流:第37行/public_html/product/index.php中没有此类文件或目录
然后
警告:include()[function.include]:无法在/ home/a3371827/public_html中打开'converter.php'以包含(include_path ='.:/ usr/lib/php:/ usr/local/lib/php')第37行/product/index.php
我错过了关于包含的内容吗?
| 归档时间: |
|
| 查看次数: |
121 次 |
| 最近记录: |