ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sorry by the, but it is possible to program C++ for Web?
like Php I did not find anything, if it is, it is viable?
Can you point me a literature about this?
Tanks.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Yes it is,
and Proud is absolutely right.
I just wanted to add that you can use any language (programming or scripting), which supports I/O operations in general. (AFAIK).
Can you clarify what you mean by "an iterative web page"?
Adding output line by line? With no use of external resources such as databases or incorporating other HTML-producing server-side code?
For an example output of
Whether it's done (that is to say, whether C++ is used) is down to what problem people are trying to solve and what options they have available. For simple dynamic pages using common web servers, things like Perl and PHP are used as they're well suited to the task and often ready to use/easy to set up. People might use C++ due to webserver limitations or performance, or interacting with unusual resources. Or for the sake of it.
It isn't completely clear whether you want to use C++ to generate HTML, or whether you want to implement an HTTP server. In either case, the answer is yes. Since C++ can read commandline arguments, environment variables, and stdin, and can write to stdout, it can be used to write CGI applications. As far as I know, it is not the usual way to implement CGI, but there is nothing to stop you from doing so. A primitive HTTP server can be written in about a hundred lines of C. There are numerous open source examples of this, covering a fairly broad spectrum of capabilities.
--- rod.
Sorry by the, but it is possible to program C++ for Web?
like Php I did not find anything, if it is, it is viable?
Can you point me a literature about this?
The only other interpretation I can think of is you want a webserver that's written in C++ and doesn't have support for any server-side languages. (Or none other than C++). You wouldn't be wanting to write it from scratch, but could understand and compile the code if your only available programmer/compiler handles C++ (perhaps for purposes of security & future fixes). But this seems an unlikely scenario.
Ok you answered my questions!!
I wanna know if it is possible to use C++ instead of PHP, to make normal WEB sites, but not like a HTTP server.
Tha is it!
Tanks all of you by the quick answers.
This forum is the BEST!!
Well,
the usefulness of using C++ instead of PHP depends on the purpose of web page you want to make.
PHP has grown very close to the web platform over the years, so if you don't have to use low profile language (or are not very concerned about the performance), like C++, I don't think it's a useful idea.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.