Re: [PHP] dynamic class loaders
On Wednesday 20 April 2005 06:28, [EMAIL PROTECTED] wrote: Hi there i was wondering if there is such an extension available or possbility to have a dynamicclass loader extension which would use the request_uri as loading the class constructors ? I justthink building such a thing in php which is what i am doing too slow for each request and think itshould happen in the internals ? Let me know if its an insane idea. Use the autoload extension. http://www.php.net/manual/en/language.oop5.autoload.php Have in mind the exception case when loading an unexisting class definition. -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436 pgp2lkwjnq0m3.pgp Description: PGP signature
[PHP] dynamic class loaders
Hi there i was wondering if there is such an extension available or possbility to have a dynamicclass loader extension which would use the request_uri as loading the class constructors ? I justthink building such a thing in php which is what i am doing too slow for each request and think itshould happen in the internals ? Let me know if its an insane idea. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dynamic class loaders
On Tue, April 19, 2005 8:28 pm, [EMAIL PROTECTED] said: Hi there i was wondering if there is such an extension available or possbility to have a dynamicclass loader extension which would use the request_uri as loading the class constructors ? I justthink building such a thing in php which is what i am doing too slow for each request and think itshould happen in the internals ? Let me know if its an insane idea. I don't quite see how: ?php require bloated_class.inc; ? can be sped up much... The problem isn't in the require function, but in the Class source bloat... But maybe I'm just being stoopid. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] dynamic class loaders
On 20/04/2005, at 2:52 PM, Richard Lynch wrote: I don't quite see how: ?php require bloated_class.inc; ? can be sped up much... The problem isn't in the require function, but in the Class source bloat... But maybe I'm just being stoopid. First thing first, I am sure you are not new to the list and so arent I but dont try and reply unless you have something useful to say. Ok let me explain myself, I store my classes in classes/ , I use a request_uri of thepackage/theclass/thesubclass will load currently the class in question thepackage_theclass_thesubclass. I am just testing things atm and asking if something has already been achieved in the extension layer, as i'd prefer to reduce the ammount of interface scripts. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php