|
Posted by Wolfgang Forstmeier on 10/21/13 11:25
Hi,
have a look @ the PHP - Manual of new Object model in PHP 5.x
here you could fine the method __autoload() this is exactly what u want :)
Have Fun ..
Wolfgang ..
kishore.sainath@gmail.com wrote:
> I have created a set of classes in PHP for internal use in the company.
>
> Hence I don't explicitly want to "require" or "require_once" them
> whenever required.
>
> I want to make the library loadable on demand just like mysql or other
> libraries in php. I want people to use the classes in my library
> without "requiring" anything.
>
> In a nutshell, I want to make my PHP library a .so file in Linux and a
> .dll file in Windows.
>
> How do I achieve this?
>
> I currently need a solution for the following combination
> Linux, Apache and PHP 5.0.4.
>
> I also welcome a solution on Windows.
>
> Thanks in advance
> - Kishore
>
Navigation:
[Reply to this message]
|