dongzanghua8422 2012-10-01 09:05
浏览 49
已采纳

包含在包含文件中不起作用[重复]

Possible Duplicate:
How to get useful error messages in PHP?

I have the following html list:

<ul id="ulGroups">
<?php
include('organizer_picturearchive_groups.php');
?>
</ul>

I am trying to include this file, which also includes another file:

<?php
include('lib/organizer_functions/picture_archive.php');
    echo select_all_picture_category_groups();
?>

Basically, what I am trying to do is to call a function that is in the picture_archive.php file. I do that in the organizer_picturearchive_groups.php file. I am including this file in the first file where the html list is. I am not pasting the whole code from there, because it is a lot, but it works.

However the include thing doesn't, because when I tried to make a test echo statement in the "organizer_picturearchive_groups.php" file it works and I can see the text I am printing.

Do you have ideas what may cause this problem ?

  • 写回答

1条回答 默认 最新

  • duan3601 2012-10-01 09:07
    关注

    Double check the path. If organizer_picturearchive_groups.php is in the same directory as the code, then try configuring the path as relative:

    <?php
    include('./organizer_picturearchive_groups.php');
    ?>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计