1

我有这样的结构:

---index.php (Slim index file)
---view
   ------css
   ------js
   ------img
   ------header.php
   ------footer.php
   ------index.php 
   ------student
         -----index.php
         -----enrolment.php
   -----course
        ------index.php
        ------exam.php

学生和课程文件夹中的所有视图文件都使用 header.php 和 footer.php。我可以将它们很好地包含在我的本地机器中,只需使用: include "/view/header.php"; 并包括“/view/footer.php”;

但是当部署在 PHPFog 云上时它似乎不起作用。这是出现的错误:

Code: 2
Message: include(/view/header.php): failed to open stream: No such file or directory
File: /var/fog/apps/app58082/calert.phpfogapp.com/view/student/index.php

有什么想法该怎么做?

4

0 回答 0