[PHP] Re: some kind of "library loader"

2002-04-08 Thread Arpad Tamas
Hi Eric (and others who might help), Actually I haven't tried the custom error handler for "function or class definiton not found errors" because I read in the manual that the processing is continued after the "statement" where the error raised. I also thought of a little hacking in php's sour

[PHP] Re: some kind of "library loader"

2002-04-05 Thread Eric Thelin
I have had a similar idea. I also tried the custom error handler aproach and it didn't work here either. I have set the project aside that I was thinking about it for but I do have some ideas that would help and may be able to contribute. I wasn't even able to get php to call my custom error ha

RE: [PHP] Re: some kind of "library loader" - Thanks

2002-04-04 Thread Maxim Maletsky
Maxim Maletsky; [EMAIL PROTECTED] > Subject: Re: [PHP] Re: some kind of "library loader" - Thanks > > > Ok, Thank you for your help Miguel and Maxim, I'm trying to do it by > the help of your suggestions. > > Arpi > > > > >Also, you c

Re: [PHP] Re: some kind of "library loader" - Thanks

2002-04-04 Thread Arpad Tamas
Ok, Thank you for your help Miguel and Maxim, I'm trying to do it by the help of your suggestions. Arpi > > >Also, you can find out if a class was defined by calling > > >'class_exists()'. In this way you might save something. > > >The best way thought is what Miguel was saying: load t

Re: [PHP] Re: some kind of "library loader"

2002-04-03 Thread Miguel Cruz
On Wed, 3 Apr 2002, Tamás Árpád wrote: > >Also, you can find out if a class was defined by calling > >'class_exists()'. In this way you might save something. > >The best way thought is what Miguel was saying: load the files > >conditionally with a logic. > That's what I'm trying to do, but still s

Re: [PHP] Re: some kind of "library loader"

2002-04-03 Thread Tamás Árpád
>Have you considered simply using require_once? Yes, actually I'm using it now, but it's not enough. >Also, you can find out if a class was defined by calling >'class_exists()'. In this way you might save something. >The best way thought is what Miguel was saying: load the files >conditionally wi

RE: [PHP] Re: some kind of "library loader"

2002-04-03 Thread Maxim Maletsky
der, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com > -Original Message- > From: Tamás Árpád [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 03, 2002 9:51 PM > To: Miguel Cruz; Maxim Maletsky > Cc: [EMAIL PROTECTED] > Subject

Re: [PHP] Re: some kind of "library loader"

2002-04-03 Thread Tamás Árpád
> On Thu, 4 Apr 2002, Maxim Maletsky wrote: > > You can try to load all those classes as texts into a db and then to execute > > the needed ones as eval()ed strings. It could be easy for you to create the > > logic because the PHP code are stings and are never included but SELECTed. > > Not sure i

Re: [PHP] Re: some kind of "library loader"

2002-04-03 Thread Miguel Cruz
On Thu, 4 Apr 2002, Maxim Maletsky wrote: > You can try to load all those classes as texts into a db and then to execute > the needed ones as eval()ed strings. It could be easy for you to create the > logic because the PHP code are stings and are never included but SELECTed. > Not sure if this

[PHP] Re: some kind of "library loader"

2002-04-03 Thread Maxim Maletsky
Arpad, as I read your mail one silly thing came into my mind: You can try to load all those classes as texts into a db and then to execute the needed ones as eval()ed strings. It could be easy for you to create the logic because the PHP code are stings and are never included but SELECTed. No