Can you use C++ in website development? I have heard and read that C++ is used for stand alone applications such as computer games and such and needs a compiler to run. But i have also heard that some websites use c++ so i dont understand how this is possible.... Can you use c++ in your website programming like you do javascript or php? I have heard many websites use c++ so I am confused. Any help is appreciated!
yes, that's what PHP is written in. I wouldn't recommend it however, since PHP has a very similar syntax to C and it's already set up to work with all common webservers.
Generally, no. You can convert C++ code into colored HTML markup but the code doesn't do anything. You would need a C++ interpreter running in the browser or web server, and I don't know of any. You can use C# which is similar, if your web server has ASP.NET or MONO. C++ is used for the majority of big projects, like computer games. You need a compiler to build a program from C++ source code, but you don't use a compiler to run a program. However, libraries may need to be installed in the operating system before it will run.
Yes you can, you can use C++ to write CGI scripts. Read this document that entails almost anything you need. http://library.thinkquest.org/16728/content/cgi/cplusplus.html regards
You have to learn PHP,Perl for the server end , javascript, html,css at the backend, C++ is not quite suitable for web programming , of course you can use it for cgi programming , but the code becomes to cumbersome.
Sure, along with other languages, but whiteblue1942 said: CGI scripts have to go in the cgi-bin directory, you can't place the code directly in the markup. So, no you can't use it like javascript or PHP. That's being picky but it's one reason CGI is not as popular today.
as mentioned previously asp.net c# is OO and based on C wouldnt take too long to get to grips wi the syntax if your familiar with C, you'd just have to learn the framework
I think it would be silly to use c++ when you have languages or frameworks like PHP, Python, Perl, Ruby, or even .NET or Java. PHP really is a web framework and Python, Perl and Ruby all have good web frameworks. I'm not sure c++ has a good web framework to take care of all the minutiae of working in a web environment. Even if c++ does have good framework it still doesn't makes sense to write a web application where you have to manage your own memroy. If you need c/c++ for the speed most language will either let you write extensions in c/c++ or will let you use some sort of bridge that will let you execute c/c++ code in your application.
yes you can.. but it would be like using a spoon to open a door.. ok.. it's a bad metaphor.. but the point is.. it's not the right tool for the job.. unless you need something that c++ offers that your standard web language(php,asp, whatever) doesn't offer, you really don't have any reason to use c++..
You can write CGI scripts in c++ . I'm not sure how, as I write cgi in Perl, but you should be able to write CGI in C and C++ . You can find more info on google: http://www.google.com/search?hl=en&q=cgi+scripts+in+c++ and on the link that Vooler provied
I suggest learning html, php css for web development as c and c++ are more for desktop applications, fine tuning the hardware and building compilers.
There are so many newbies posting in this thread without the slightest clue... Just read the posts by davejames909 and LogicFlux. It isn't a good idea to use C/C++ to write CGI scripts. Wrong tool for the job like someone else already said. If you are a C/C++ programmer Asp .NET and C# is the way to go. Most people prefer to use PHP because it's easy. As for Perl, noone writes Perl for CGI anymore. If you choose to use Perl use mod_perl or FastCGI and a framework like Catalyst or Maypole.