Help with parse error
Posted: Sat Mar 04, 2006 4:16 pm
Hello all,
Im in the making of a CMS and I ran into an error in one of my files that I just can't figure out at all. Here is the code.
./includes/global.php
The PHP Error:
Line 13 is :
define("TABLE_PREFIX", $cfg['table_prefix']);
Part of the problem here is that my webserver spftware has some kinda setting that limits the error information PHP outputs and its very annoying because I dont get enough information about the problem and I looked int eh php.ini file and found nothing wrong. Anyway, I still cant figure out whats wrong and I can bet on the fact its something simple. It would be great if someone could help me out.
Thanks!
Im in the making of a CMS and I ran into an error in one of my files that I just can't figure out at all. Here is the code.
./includes/global.php
Code: Select all
<?php
/*
+--------------------------------------------------+
| Content Management System
+--------------------------------------------------+
| - Content Removed -
+--------------------------------------------------+
*/
require_once("./includes/config.php")
define("TABLE_PREFIX", $cfg['table_prefix']);
define("IN_MADKERNAL", $cfg['in_madkernal']);
define("MADKERNAL_PATH", $cfg['madkernal_path']);
$madkernal = new madkernal;
$madkernal->loadclasses(1);
$db = new db;
$template = new template;
$db->init($cfg['dbhost'], $cfg['dbuser'], $cfg['dbpass'], $cfg['dbname']);
$template->init("default");
//END
?>Code: Select all
Parse error: parse error in c:\program files\easyphp1-8\www\bullying_cms\includes\global.php on line 13define("TABLE_PREFIX", $cfg['table_prefix']);
Part of the problem here is that my webserver spftware has some kinda setting that limits the error information PHP outputs and its very annoying because I dont get enough information about the problem and I looked int eh php.ini file and found nothing wrong. Anyway, I still cant figure out whats wrong and I can bet on the fact its something simple. It would be great if someone could help me out.
Thanks!