Here is the path to the file with the include statement:
http://localhost/plugins/index.php
And here's the path to the file I'm including:
http://localhost/header.php
So when I call include('/header.php')
I get the failed to open stream warning message. But when I use include('../header.php')
everything works fine. However, I have files contained deep with directories, and I don't want to keep specifying relative paths one directory up at a time. I'm sure there must be a way to shorten the include argument other than using '/'
; If there is, what could that be?