Wednesday, October 16, 2013

PHP Based Framework VS C Based Framework

Basically there are two kind of PHP framework: PHP based and C based. What is the differences? PHP based framework built by PHP language, which contains PHP files and interpreted simultaneously with your own PHP codes.

In the other hand, C based framework built by C language, which contains C files that already compiled and planted as a web server extension. So the framework is already active in memory together with the web server. These compiled C framework contains classes and methods that can be used and called from your PHP codes.


Because C framework is already active and running in memory, it's faster than PHP framework which still need to reads and interprets files from hard disks. But C framework have downsides, because it's planted as a web server extension, it's a more difficult to maintain than PHP framework. In PHP framework you can change or manipulate the framework without touching web server configuration and service. But in C framework, let's say when you upgrade the framework, you need to recompile and restart the web server.

So wich one is the best? It's totally depends on you and your conditions. If your PHP apps are hosted and you don't have access to web server configuration, then PHP framework is for you. But if you your PHP apps running on VPS or dedicated server, so you have full access to configure the web server, and you need better performance, then C framework is the answer.

0 comments:

Post a Comment