Page 1 of 1

Fatal error: Class not found...

Posted: Thu Jun 11, 2009 10:00 pm
by Xeel
Hi :)
I've got a strange error today after migrating from webdev to xampp local server (windows xp).
My library class says "Fatal error: Class 'Properties' not found in [abs path]\classes\repository.php on line 14". The class is obviously there and it all worked just fine before migration. Here goes the code:

repository.php:

Code: Select all

<?php
require_once("config.php");
require_once("extra_api.php");
require_once("bean_User.php");
require_once("bean_Usher.php");
require_once("Logging.php");
 
class Repository{
    private $conn;
    private $p;
    private $log;
 
    function __construct(){
        $this->p = new Properties(); //this is the error line #14
        $this->log = new Logging();
    }
...
config.php:

Code: Select all

<?php
class Properties{
//localhost
 
    public $dbhost = "localhost";
    public $dbuser = "user";
    public $dbpassword = "password";
    public $dbname = "mydb";
}
Both php files are in the same dir of course...
Any ideas?

XAMPP v1.7.1, PHP v5.2.9, WinXP SP3

Re: Fatal error: Class not found...

Posted: Thu Jun 11, 2009 10:20 pm
by Xeel
RESOLVED