Make sure that PHP-code is enclosed in <?php
and ?>
. Code that is not enclosed in <?php
and ?>
is interpreted by PHP as output that should be send to the browser. so you should do something like
<?php
DEFINE ('DB_USER', 'myname');
DEFINE ('DB_PASSWORD', 'local123');
DEFINE ('DB_HOST', 'localhost');
DEFINE ('DB_NAME', 'sitename');
?>