Installation Problems
Posted: Wed Apr 07, 2004 10:29 am
I am a complete newbie to php but so far I love the capabilities. I recently installed php4 on a server at work (for internal use only). I made a simple php page that contains the following:
<?
// Prevent obsessive/compulsive reloads
//session_cache_limiter('public');
$pagetitle = "Central Station: Your information Portal!!";
include("..\shared\header.php");
$thedate = getdate();
$today = $thedate['month']." ".$thedate['mday'].", ".$thedate['year'];
?>
<p><b>Today is <? echo "$today"; ?>.</b></p>
<? include("..\content\index_content.htm");
include("..\shared\footer.php"); ?>
When I try to view the page from a browser (localhost or remote machine) I get the following:
Warning: main(..\shared\header.php): failed to open stream: No such file or directory in c:\inetpub\wwwroot\index.php on line 7
Warning: main(): Failed opening '..\shared\header.php' for inclusion (include_path='.;C:\php4\includes\pear') in c:\inetpub\wwwroot\index.php on line 7
Today is April 7, 2004.
Warning: main(..\content\index_content.htm): failed to open stream: No such file or directory in c:\inetpub\wwwroot\index.php on line 16
Warning: main(): Failed opening '..\content\index_content.htm' for inclusion (include_path='.;C:\php4\includes\pear') in c:\inetpub\wwwroot\index.php on line 16
Warning: main(..\shared\footer.php): failed to open stream: No such file or directory in c:\inetpub\wwwroot\index.php on line 17
Warning: main(): Failed opening '..\shared\footer.php' for inclusion (include_path='.;C:\php4\includes\pear') in c:\inetpub\wwwroot\index.php on line 17
Any help would be greatly appreciated. I am sure this is something simple but for the life of me I cannot find it.
Thanks,
Lee
<?
// Prevent obsessive/compulsive reloads
//session_cache_limiter('public');
$pagetitle = "Central Station: Your information Portal!!";
include("..\shared\header.php");
$thedate = getdate();
$today = $thedate['month']." ".$thedate['mday'].", ".$thedate['year'];
?>
<p><b>Today is <? echo "$today"; ?>.</b></p>
<? include("..\content\index_content.htm");
include("..\shared\footer.php"); ?>
When I try to view the page from a browser (localhost or remote machine) I get the following:
Warning: main(..\shared\header.php): failed to open stream: No such file or directory in c:\inetpub\wwwroot\index.php on line 7
Warning: main(): Failed opening '..\shared\header.php' for inclusion (include_path='.;C:\php4\includes\pear') in c:\inetpub\wwwroot\index.php on line 7
Today is April 7, 2004.
Warning: main(..\content\index_content.htm): failed to open stream: No such file or directory in c:\inetpub\wwwroot\index.php on line 16
Warning: main(): Failed opening '..\content\index_content.htm' for inclusion (include_path='.;C:\php4\includes\pear') in c:\inetpub\wwwroot\index.php on line 16
Warning: main(..\shared\footer.php): failed to open stream: No such file or directory in c:\inetpub\wwwroot\index.php on line 17
Warning: main(): Failed opening '..\shared\footer.php' for inclusion (include_path='.;C:\php4\includes\pear') in c:\inetpub\wwwroot\index.php on line 17
Any help would be greatly appreciated. I am sure this is something simple but for the life of me I cannot find it.
Thanks,
Lee