Page 1 of 1

PHP Classes and includes

Posted: Sun Jun 04, 2006 3:40 pm
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

Posted: Sun Jun 04, 2006 3:49 pm
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.