PHP-Code:
$paths_config = array('include/class/');
$packages_config = array('');
function __autoload($class) {
$class = strtolower($class);
for($i = 0; $i < count($packages_config); $i++)
{
for($j = 0; $j < count($paths_config); $j++)
{
$include_path = $paths_config[$j] . $packages_config[$i] . $class . '.class.php';
if(file_exists($include_path))
{
require_once $include_path;
}
}
}
}
Es wird aber nichts eingebunden. Ich vermute, das die forschleifen nicht ausgeführt werden.
am verzeichnis liegt es glaub ich nicht, include/class/test.class.php
Kommentar