Header already sent error in PHP joomla
Posted
by Leo
on Stack Overflow
See other posts from Stack Overflow
or by Leo
Published on 2010-05-14T03:52:07Z
Indexed on
2010/05/14
4:04 UTC
Read the original article
Hit count: 383
hi all, $dbhost = 'localhost'; $dbuser = 'EhpEngineUser'; $dbpass = 'password'; $conn = mysql_pconnect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $dbname = 'joomladb'; mysql_select_db($dbname);
// include 'config.php'; // include 'opendb.php';
above code works fine, if i comment DB connection part and inculde config.db and Opendb, then i get the error as Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\Joomla\Config.php:8) in C:\xampp\htdocs\Joomla\ConfXml.php on line 103
Both file are used for opening DB only.
regards, Leo
© Stack Overflow or respective owner