2007-02-17, 11:01 PM
My forums are at the /forums directory.
My index.php file has this code:
And it gives me a really wierd error.
It says this:
What is wrong?
Why can't it open init.php?
NOTE: index.php with the code is NOT inside the /forums directory! It is outside of the directory. Although, the wierd thing is that I made it have the right directory forums/global.php
My index.php file has this code:
<?php
define("IN_MYBB", 1);
require 'forums/global.php';
if($mybb->user['uid'] != 0)
{
echo "Hello, you are logged in! " . $mybb->user['username'] . "";
}
?>
And it gives me a really wierd error.
It says this:
Quote:Warning: main(./inc/init.php) [function.main]: failed to open stream: No such file or directory in /home/warp/public_html/forums/global.php on line 13
Fatal error: main() [function.require]: Failed opening required './inc/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/warp/public_html/forums/global.php on line 13
What is wrong?
Why can't it open init.php?
NOTE: index.php with the code is NOT inside the /forums directory! It is outside of the directory. Although, the wierd thing is that I made it have the right directory forums/global.php