Ipsens
January 6th, 2008, 09:24 PM
function __autoload($class_name)
{
require_once($_SERVER['DOCUMENT_ROOT'] . '/path/' . $class_name . '.php');
}
Doesn't work when I obfuscate php files with Zend encoder, because it obfuscate class_name.
How do I make it work instead.
Right now I forced to write long require() list.
Duh!
Please post full solution in ... example
Thanks in advance!
;)
{
require_once($_SERVER['DOCUMENT_ROOT'] . '/path/' . $class_name . '.php');
}
Doesn't work when I obfuscate php files with Zend encoder, because it obfuscate class_name.
How do I make it work instead.
Right now I forced to write long require() list.
Duh!
Please post full solution in ... example
Thanks in advance!
;)