Probably the config variables should be in a class of their own. Then you could include that file before you start your your class definition, and make it extend the configuration class.
Config.php:
<?php
class Config
{
var $item1 = "foo";
var $item2 = "bar";
}
?>
MyClass.php:
<?php
// load Config class definition:
require_once "Config.php";
// define new class extending Config class:
class MyClass.php extends Config
{
function MyClass()
{
// attributes inherited from Config class should now be available:
echo $this->item1 . $this->item2;
}
}
?>