Hi all. I am having a problem linking an include file…
My file structure:
root
head.phpsubFolder
myFile.php
To get to the file I have tried everything I can think of. But what I thought should work, isn’t.
In myfile.php I have a line at the top that says require '../head'
But for some reason this line throws an error.
Warning : require(head.php): Failed to open stream: No such file or directory in E:\xampp\htdocs\runes\algiz.php on line 3
Fatal error : Uncaught Error: Failed opening required ‘head.php’ (include_path=‘E:\xampp\php\PEAR’) in E:\xampp\htdocs\runes\algiz.php:3 Stack trace: #0 {main} thrown in E:\xampp\htdocs\runes\algiz.php on line 3
I noticed the line that says
(include_path=‘E:\xampp\php\PEAR’)
and wondering why the PEAR is in there since I have not seen that before.
Anyway, suggestions are greatly appreciated.
Jim