Re: [PHP] __autoload alternative

2008-09-22 Thread Eric Butera
On Mon, Sep 22, 2008 at 11:59 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: >> >> On Mon, Sep 22, 2008 at 2:54 AM, Shelley <[EMAIL PROTECTED]> wrote: >> >>> Hi all, >>> >>> Is there any way to auto load a class without using __autoload() >>> function? >>> >>> As I want to load

Re: [PHP] __autoload alternative

2008-09-22 Thread Nathan Rixham
Nathan Nobbe wrote: On Mon, Sep 22, 2008 at 2:54 AM, Shelley <[EMAIL PROTECTED]> wrote: Hi all, Is there any way to auto load a class without using __autoload() function? As I want to load some classes under different paths, and that caused redeclare of __autoload function. a lot of people

Re: [PHP] __autoload alternative

2008-09-22 Thread Nathan Nobbe
On Mon, Sep 22, 2008 at 2:54 AM, Shelley <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there any way to auto load a class without using __autoload() function? > > As I want to load some classes under different paths, and that caused > redeclare of __autoload function. a lot of people / frameworks,

Re: [PHP] __autoload alternative

2008-09-22 Thread Nathan Nobbe
On Mon, Sep 22, 2008 at 3:09 AM, Aschwin Wesselius <[EMAIL PROTECTED]>wrote: > Shelley wrote: > >> Hi all, >> >> Is there any way to auto load a class without using __autoload() function? >> >> As I want to load some classes under different paths, and that caused >> redeclare of __autoload functio

Re: [PHP] __autoload alternative

2008-09-22 Thread Jochem Maas
Shelley schreef: Hi all, Is there any way to auto load a class without using __autoload() function? As I want to load some classes under different paths, and that caused redeclare of __autoload function. Any suggestions appreciated. spl_autoload_register() http://php.net/manual/en/function.

Re: [PHP] __autoload alternative

2008-09-22 Thread Aschwin Wesselius
Shelley wrote: Hi all, Is there any way to auto load a class without using __autoload() function? As I want to load some classes under different paths, and that caused redeclare of __autoload function. Any suggestions appreciated. Hi Shelley, I believe the PECL automap extension does what y

[PHP] __autoload alternative

2008-09-22 Thread Shelley
Hi all, Is there any way to auto load a class without using __autoload() function? As I want to load some classes under different paths, and that caused redeclare of __autoload function. Any suggestions appreciated. -- With best regards, Shelley Shyan http://phparch.cn