c++ on webhost?

This is a discussion on c++ on webhost? within the C++ Programming forums, part of the General Programming Boards category; When I was searchin for a webhost I saw that some of them offered php. But I also noticed some ...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    731

    c++ on webhost?

    When I was searchin for a webhost I saw that some of them offered php. But I also noticed some offered c++.

    What does that mean? Can I use c+
    + on my websites on that host or what?

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    CGI - Common Gateway Interface.

    When you fill in a form on web page, it is often processed by this means. The HTML will specify variable names to hold the data in each element, default values, etc... and a method of sending it to the webserver (POST or GET - the difference as far as a CGI script is concerned is just the means by which it reads in the data). The webserver will pass all this on to your CGI script which will then execute. You can then process these variables (you may have to extract them from a long string - the format is something like "name1=value1&name2=value2" but I can't remember for sure), and then you can send back the webpage, by outputting HTML code to stdout (cout does this). This allows you to create webpages on the fly - "Dynamic Content". Do a search on google and you'll get a more conprehensive tutorial on using C++ for CGI scripts. It's a lot of fun - I think you'd enjoy it.

  3. #3
    Registered User Kybo_Ren's Avatar
    Join Date
    Sep 2004
    Posts
    136
    You can also use PHP's passthru() function to execute a program and have its output echo'd to the webpage.

    This is very very useful sometimes.

  4. #4
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    well not what I hoped for. But maybe I will check in on it. I still need a better c++ compile to do ragular c++ programs.

  5. #5
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    What compiler do you have?
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  6. #6
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    I use dev-cpp

  7. #7
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    GCC/MinGW (the compiler in Dev-C++) is a great compiler for working with C++ (at all levels: beginner to commercial software).
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  8. #8
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    someimtes, I think some of there .h files are outdated tho.

  9. #9
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Well, you can always add libraries (or update ones). What in particular makes you think that, though?
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Webhost with SQL2000 and PHP support....
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 02-17-2005, 02:20 PM
  2. Werbhost Review
    By Driveway in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-12-2002, 12:06 PM
  3. Webhost
    By Driveway in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 09-03-2002, 07:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21