Use C coded programs embedded in a Web Page

Is there a way I can use a tag like the embed tag so I can use C/C++/C# code in a web page? If there is would it be identified in the section and shown on the site inside the tag? Or just in the tag. This would be a great help if anyone had an answer to this. Thanks.

Go to http://www.geocities.com/war2clanda/ all Battle.net players for info on clans, Battle.net and it's bots grudge.


Comments

  • : Is there a way I can use a tag like the embed tag so I can use C/C++/C# code in a web page? If there is would it be identified in the section and shown on the site inside the tag? Or just in the tag. This would be a great help if anyone had an answer to this. Thanks.
    :
    : Go to http://www.geocities.com/war2clanda/ all Battle.net players for info on clans, Battle.net and it's bots grudge.
    :
    :
    :

    I'm pretty sure this is the wrong forum to be posting this in... And as far as I know, you can't do it.
    [hr]Ethereal software and Mag monitors, doesn't get much better now does it?

  • This is definetly the wrong forum to be posting in but I'll answer it anyways.

    Most languages like C require a compiler, therefore making it impossible for a client side application like a web browser to decode the embedded code. For this reason there are a few server side languages that can be embedded into HTML - not through a head or body, but through the general tag and/or mixed within by switching from the use of HTML back to the use of the language. As far as I know there is only ONE web language anything near C/C++/C# codeing and its called PHP. But as I said above, you will need to find a hoster with the server based application installed for the code to work. (Generally, free hosters like geocities don't support server side programming)


    : : Is there a way I can use a tag like the embed tag so I can use C/C++/C# code in a web page? If there is would it be identified in the section and shown on the site inside the tag? Or just in the tag. This would be a great help if anyone had an answer to this. Thanks.
    : :
    : : Go to http://www.geocities.com/war2clanda/ all Battle.net players for info on clans, Battle.net and it's bots grudge.
    : :
    : :
    : :
    :
    : I'm pretty sure this is the wrong forum to be posting this in... And as far as I know, you can't do it.
    : [hr]Ethereal software and Mag monitors, doesn't get much better now does it?
    :
    :

  • Using C or C++ on a web server would be in the form of an executable file in your cgi-bin directory, most likely.

    You would format the compiled program to output html directly or to call already formatted html forms.

    Many places will not allow C or C++ code on their servers because it is a security risk -=and=- it can be an extreme user of shared system resources. If you have your own server or you lease a full server, then you probably can do this all you want to. One of the main reasons that big web sites run on their own servers is so that they can use C, C++, or assembled code on the machine without a hassle.

    There ARE web hosting companies that allow shared server users to compile and run C and C++ code in the shared environment. Many web hosting companies don't and no free ones do, as far as I know. You may find a free shell account with web space that does. Good luck.


    : Is there a way I can use a tag like the embed tag so I can use C/C++/C# code in a web page? If there is would it be identified in the section and shown on the site inside the tag? Or just in the tag. This would be a great help if anyone had an answer to this. Thanks.
    :
    : Go to http://www.geocities.com/war2clanda/ all Battle.net players for info on clans, Battle.net and it's bots grudge.
    :
    :
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories