How to use HTML with Linux

Posted on 2006-03-23
Last Modified: 2010-04-21
I'm developing an application in C++ using Linux. I what to create some static web pages and in embedd in my app so I can control my app with web browser. Is there an HTML to C or C++ compiler for Linux. Is there some how to to explain?
Question by:BlackRussian
    LVL 43

    Expert Comment

    >Is there an HTML  C or C++ compiler for Linux
    No. But why will not You put those htmls into separate files, and then (on request) You could simply read the file and print to stdout (std::cout)
    LVL 12

    Expert Comment


    It is not a good idea to embed static HTML page in C or any other language. If they are full HTML pages, it is better to redirect or print the page to browser as ravenpl has suggested. If they piece content in the HTML page, you could those parts in a lookup table or generate them dynamically.

    LVL 14

    Expert Comment

    In addition to what ravenpl suggests, I'd like to point your attention to that one:
    LVL 24

    Accepted Solution

    HTML is not  a programming languages. So what you want to achieve have to be done differently.

    Write you C stuff, write your frontend pages separatly, write the backend logic in whatever language you like if you insist you can use CGI scirpts written in C for that,

    although it will be much easer to steel the logic with some "scritping language".

    You could e.g wrap you C functions up for this script language and call your C via this scripting language then.

    In fact what you like to do is Web-programming.



    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now