Hi,
I'm suddenley (and for no reason I can spot) getting errors when trying to include files on a page. I have the following (where jobs is contained in the root directory):
<!-- INCLUDE HEADER -->
<?php
include("jobs/client/loft/page/header.php");
?>
<!-- /INCLUDE HEADER -->
I've used this include/path syntax before without issue, and having changed nothing cannot work out the bug.
If I use a relative path (../ etc) it loads the header without problem. Also, if I load the full URL of the included header into the browser it loads up no problem, but it refuses to recognise that full path in the include URL (and I did try with a / before jobs).
Standard error is:
Warning: Failed opening 'jobs/client/loft/page/header.php' for inclusion (include_path='') in c:\phpweb/jobs/client/loft/en/index.php on line 15
The only difference I can spot between this syntax and earlier projects that did (and still do) work is that this path is slightly longer.
Anyone have any ideas? This is one of those dumb problems that cause highly unwarranted teeth-grinding...
Gary