I've decided to write a Website in C++. I am sick of dealing with languages that layer on top of other languages, so I just want to write it in C++. I know about CGI++, but I was wondering if there were any other tools or methods used for writing a site in C++.
Other than for the pure challenge of doing it, I see no reason to write a web site in c++ since there are other markup languages more suited for the task. I don't write web sites but my guess is that not a single one of them were written in pure C or C++.
it won't execute without some tweaking of permissions, mime types, configuration files, etc., so even if you want everything in C++, it's going to be a matter of doing at least SOME html, I would imagine, and calling your C++ program from there.
What's the need to reinvent the wheel? Do you have some special project that doesn't fits in any web oriented base language?
For example PHP is open source and based on C, so why not building the web site on that language?
That is just it fantasma, PHP is BASED on C. Layered languages are usually like onions in my mind. I've used PHP, I've used rails. I believe it is better to write a project from scratch, not use something pre-packaged like PHP. That is purely my own belief and I am not going to force it on anyone else.
Two C libraries that may be useful to you (libcurl and libxml). Most of the cgi programs I write are in C and I use these a lot. The website itself is written in Flex, with some PHP in there, but the CGIs are in C. These two libraries help a lot with GETing, POSTing, etc., and creating/parsing xml.
I've been to a seminar in which the guy made up a website in C# with Visual Studio. However on later observation. Only the backend was written in C#. All of the front end was generated in HTML and php codes itself. Maybe you should check it out then.It myt suit your requirement.
Cause I'm sure that it will convert all source languages to its interpreter language.
Vernon thank you for answering my question. Sky Diploma, I am thinking about using CGI and XSL for the front end.
I am an app developer for Apple. My apps can easily be ported to android. So I think it would be good to make my site as an app in C++, release it for mobile phones and then if that is succesful make the website.
Most Website usage is via mobile phones nowadays.