Hudzilla.org - the homepage of Paul Hudson PHP and PHP
Contents > Introducing PHP > Advantages of PHP Wish List | Report Bug | About Me ]

2.2.7     When not to use PHP

NOTE: This is NOT the latest copy of this book; click here for the latest version.

There are two situations when I would not recommend PHP for use in a web application. Firstly, as already mentioned, if you desperately need all the performance you can get, you should be using C or C++. Both languages are unwieldy on the web, but they offer superior performance. Even in this situation you might want to consider simply writing your C code as extensions to PHP.

Secondly, if you are adding to a system which already has a lot of code already written in another language, then coding parts in PHP will only make your maintenance job more difficult, so you are likely to find it easiest in the long run to keep using the old language.

Author's Note: It's important for me to make the point that, although PHP is thread-safe, its libraries may not be. If you don't know what thread-safe means, you don't need to worry about it!



<< 2.2.6 When to use PHP   2.2.8 Selling PHP to your boss >>
Table of Contents
Top-right shadow
 
Bottom-left shadow Bottom shadow