PHP Classes and includes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

PHP Classes and includes

Post by MrPotatoes »

i was hoping to hear some good news on this.

i wanted to know if i would be able to force PHP to not load up certain things and only load things that i want it to load.

for instance in C and C++ you have to actually tell it which code and libraries you want from the code base. for instance #include <string.h>. in PHP this is already loaded for you.

of course my own libraries i have to do this myself but that is just the same as in PHP. i was hoping to have it so that PHP only includes what i want it to include. nothing less nothing more. i think that would be great for many people and it would be less bloated. much faster too. granted PHP is pretty fast now, it would be nice. i like control over my applications :D
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Hi. PHP is not a low-level language: it is interpreted at run-time and has a lot of convenience, such as built in strings and arrays loaded. These things are integral to the PHP system and cannot be overridden.

That being said, PHP does offer a great deal of flexibility with regards to run-time extensions and other configuration options. Please read http://us2.php.net/manual/en/ini.php and http://us2.php.net/manual/en/extensions.php for more information.
Post Reply