Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Language for web site development C++ or php?

I want to develop a forum like web site. I know C, C++ well but I havent used in web development.I know PHP little bit. Which language should i use?

like image 647
vab Avatar asked Dec 06 '22 05:12

vab


1 Answers

C++ can and has been used to successfully develop highly scalable web applications. That said, one of the main reasons C++ is not so popular in this category is to do with the lack of standard tools and libraries. There is simply no feature rich library which includes all the necessary boiler-plate code needed to write web applications.

PHP is everything that C++ isn't when it comes to web development - a high-level scripting language designed mainly for web development. The description of PHP on the homepage sums it up nicely:

PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.

If you're developing a simple forum, this decision is a no-brainer: PHP. In addition to the obvious advantages to using it, you'll find the syntax familiar as it is C-like. However, if you have all the time in the world, you're feeling brave and this is for hobbies' sake, do it with C++!

like image 59
karim79 Avatar answered Jan 05 '23 13:01

karim79