Possible Duplicate:
Convert PHP Class in apache module
I'm looking for some guidance on the web to create an apache2 module which, when loaded, is able to expose a class in php:
if I create a php class as
// myclass.php
class myClass {
public function myFunction ($t) {
return $t;
}
}
I can write
include("myclass.php");
$item = new myClass ();
echo $item-> hello ("word");
I would like to create an apache module that I make available the class all the php files in my server so I can write:
$item = new myClass ();
echo $item-> hello ("word");
Of course I could set in php.ini to autoload file, but I need to encrypt the methods and algorithms of the class in order to redistribute the class as a framework
Any advice?