Hello.

I have a nasty problem that i can't seem to solve.
I have defined a class with all function, but when i call the class on a other page i get this error: Fatal error: Class 'building_catalog' not found in C:\wamp\www\Test\test1.php on line 3

if i test everything in phped i get no error with the debugger or the internal webserver.

Much smaler version of the original code:

test1.php
------------------------
<?php require_once("../Kernel Core/Engine Core.php");?>
<?php
$c = new building_catalog();
$c->building_add_db("test_building");
?>

Engine Core.php (only 1 function)
-----------------------------
<?php require_once("includes/database_commands.php");?>
<?
class building_catalog
{
function building_add_db($name)
{
mysql_query("INSERT INTO gebouwen (building_name) VALUES ('$name' )") or die(mysql_error());
}
}


hope anyone can help me out because its driving me mad that i cant find a sollution.