I'm facing a problem with require_once...
Instead of actually including the file i'm requiring, it just dumps it
out as text...
other functions are working quite well...
the code look like this:
$forum_version = 'SMF 1.0 RC2';
// Get everything started up...
define('SMF', 1);
@set_magic_quotes_runtime(0);
$time_start = microtime();
// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');
error_reporting(isset($db_show_debug) && $db_show_debug === true ?
E_ALL : E_ALL ^ E_NOTICE);
// And important includes.
require_once($sourcedir . '/QueryString.php');
After this line:
require_once(dirname(__FILE__) . '/Settings.php');
It just displays the contents of Settings.php as text to the browser -
no code execution...
Although dirname(__FILE__) works fine and actually returns the correct
directory name of the current file, so i can't really tell if it's a
problem with php code execution in general or just this function
(require_once)...
Thanks.