I have a file called health.php:
Code: Select all
<?php
require_once("../inc.functions.php");
db_connect();
get_user_data();
$health = $_SESSION['userdata']->health;
$max_health = $_SESSION['userdata']->sta * 10;
echo "<span class=\"greenname\" style=\"font-size:14px;\">Health Points</span><br><br>";
echo "$health / $max_health Health Points";
mysql_close();
?>Now when I try to load that page I get the following error:
Fatal error: Cannot redeclare class config in C:\Program Files\xampp\php\pear\Config.php on line 43
I don't understand what is it all about php\pear\Config.php file if it's not even included in any of my scripts. Anyway, 43rd line on php\pear\Config.php file:
Code: Select all
class Config {