Errors when naming using index.php as default page?
Posted: Fri Dec 26, 2008 10:06 pm
Hey guys, I'm a complete noob to php. I just made a simple calendar script for my site and used it in my main page. The page and script worked flawlessly when not named index.php. But once I renamed the page index.php I started getting these error messages:
Warning: include(./common.php) [function.include]: failed to open stream: No such file or directory in /home/********/public_html/index.php on line 20
Warning: include() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/********/public_html/index.php on line 20
Warning: include(./includes/functions_display.php) [function.include]: failed to open stream: No such file or directory in /home/********/public_html/index.php on line 21
Warning: include() [function.include]: Failed opening './includes/functions_display.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/********/public_html/index.php on line 21
Fatal error: Call to a member function session_begin() on a non-object in /home/********/public_html/index.php on line 24
Line 20 of my code is this: <link href="default.css" rel="stylesheet" type="text/css" media="screen" />
I'm sure I've done something stupid, I'm just not sure what it is.
Anyone have a clue?
P.S. - I added DirectoryIndex index.php to my .htaccess file just in case that was the problem.
Any help will be greatly appreciated.
Thanks!
Warning: include(./common.php) [function.include]: failed to open stream: No such file or directory in /home/********/public_html/index.php on line 20
Warning: include() [function.include]: Failed opening './common.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/********/public_html/index.php on line 20
Warning: include(./includes/functions_display.php) [function.include]: failed to open stream: No such file or directory in /home/********/public_html/index.php on line 21
Warning: include() [function.include]: Failed opening './includes/functions_display.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/********/public_html/index.php on line 21
Fatal error: Call to a member function session_begin() on a non-object in /home/********/public_html/index.php on line 24
Line 20 of my code is this: <link href="default.css" rel="stylesheet" type="text/css" media="screen" />
I'm sure I've done something stupid, I'm just not sure what it is.
Anyone have a clue?
P.S. - I added DirectoryIndex index.php to my .htaccess file just in case that was the problem.
Any help will be greatly appreciated.
Thanks!