Constant MINS already defined
you should add some code to check if your constant was defined not.
From this:
define('constant', 'value');To this:
if (!defined('constant')) define('constant', 'value');An Example:
<?phpResult:
define('MIN', '5');
echo '<hr /><h2>Have not check constant.</h2>';
echo MIN;
define('MIN', '5');
echo '<hr /><h2>Checked constant.</h2>';
if (!defined('MIN')) define('MIN', '5');
echo MIN;
?>
Reference:
http://stackoverflow.com/questions/5887108/constant-already-defined-in-php
No comments :
Post a Comment