Garethp Posted August 27, 2009 Share Posted August 27, 2009 Okay, so I understand that you can enable extensions in PHP which allow you to access more functions. Can I create an extension from my own classes? So that they're automatic, rather than having to include them? I know I should just stick to including them, I'm just curious Link to comment https://forums.phpfreaks.com/topic/172085-making-classes-standard/ Share on other sites More sharing options...
genericnumber1 Posted August 27, 2009 Share Posted August 27, 2009 Extensions are typically programmed in C and compiled into a dll. You can, on the other hand, auto include files in the php.ini, but that's not at all portable and you should avoid doing it. Link to comment https://forums.phpfreaks.com/topic/172085-making-classes-standard/#findComment-907328 Share on other sites More sharing options...
suresh64633 Posted August 27, 2009 Share Posted August 27, 2009 How can we auto include files in the php.ini Link to comment https://forums.phpfreaks.com/topic/172085-making-classes-standard/#findComment-907350 Share on other sites More sharing options...
trq Posted August 27, 2009 Share Posted August 27, 2009 If you follow the PEAR/Zend method of organising your classes within a specific directory structure you can place your classes within php's include_path then easily configure spl_autoload to load your classes upon instantiation. Link to comment https://forums.phpfreaks.com/topic/172085-making-classes-standard/#findComment-907365 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.