Update: I figured it out, I need to use forward slashes in the path.
Hey,
I just switched off Linux about a month ago, and I saved a website I was working on.
Well, now I installed Apache, PHP, and mySQL. So I'm putting my site on Windows (XP Home).
I have news, and the site itself. On the header function I have a spot where the news headlines file is included.
<?
(other code)
function showHeader($title) {
?>
(other code)
<td width="167" height="100" valign="middle" nowrap class="table-newarticlesbar">
<img src="/images/siteHeader/new_articles_logo.gif" alt="New Articles" width="167">
<?
include("C:\\Program Files\\Apache Group\\Apache2\\htdocs\\news\\headlines.php");
?>
</td>
(other code)
<?
}
(other code)
?>
Every time the function is called, PHP raises an error about the include function on the page that called the header function.
Warning: showheader(C:\Program Files\Apache Group\Apache2\htdocs
ews\headlines.php): failed to open stream: Invalid argument in C:\Program Files\Apache Group\Apache2\htdocs\includes\php\layout.inc.php on line 87
Fatal error: showheader(): Failed opening required 'C:\Program Files\Apache Group\Apache2\htdocs
ews\headlines.php' (include_path='.;C:\Program Files\Apache Group\Apache2\htdocs\includes\php') in C:\Program Files\Apache Group\Apache2\htdocs\includes\php\layout.inc.php on line 87
About these errors, the path to my headlines file is "C:\Program Files\Apache Group\Apache2\htdocs\news\headlines.php". PHP points out "C:\Program Files\Apache Group\Apache2\htdocs\ewsheadlines.php". 😕
I hope someone can help. 🙂