I have a structure like this:
---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
The header.php and footer.php are used by all the view files inside the student and course folders. I can include them fine in my local machine just by using: include "/view/header.php"; and include "/view/footer.php";
But it doesnt seem to work when deployed on PHPFog cloud. This is the error that comes up:
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
Any ideas what to do?