Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I've developed a lot of websites with PHP but sometime after learning C programming I found out that it's possible to do the same thing using C CGI. But I still don't know if it will be worth switching to C CGI because I don't know what are the main advantages and disadvantages that C CGI has over PHP. While talking to a friend that develops sites using ASP.NET he told me that one of the biggest advantages that compiled languages have over interpreted ones on the web is that they are a lot faster mainly for websites that receive a lot of visitors frequently for they are pre-compiled. Other than that what are the other advantages and disadvantages that C CGI has over PHP?

  • Which one will be more secure to use when creating web applications?

    Which one of the two is more vulnerable to code injections?

    Is C CGI still used nowadays?

    Does it still get updates or have they stopped developing?

Please I would appreciate if you didn't give me answers such as : Choose PHP because it's open source... Or Choose the one that you think you are good at etc...

Thanks in advance.

share|improve this question

closed as primarily opinion-based by John Conde Apr 18 at 11:54

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

    
PHP is a rather safe language and C, C++, and so on, can have dramatic consequences when they fail. PHP is slower, but the trade off is significant in that PHP is a RAD language with lots of tools and does not have the same potential to crash your system. If given a choice at gun point, then it would be PHP hands down. The exception would be if you were to want to integrate your code into Apache. That is scary work though. –  closetnoc Apr 18 at 16:23

Browse other questions tagged or ask your own question.