LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Starting cgi programming... (https://www.linuxquestions.org/questions/programming-9/starting-cgi-programming-392505/)

zahadumy 12-13-2005 05:27 PM

Starting cgi programming...
 
I want to start cgi programming. As far as I understood so far, I need a web server to put my cgi programs on. But how can I practice if I don't have one? Is is possible to practice on my computer and after I finish it to put the files on a web server? I'm pretty sure it is possible. Can you tell me how, please?
Thank you.

mlaich 12-13-2005 05:44 PM

Hi zahadumy,
if you are planning for C cgi scripts, then you don't need any practice, they are quite similar to normal C programs, just place "printf(\"" and "\");" before and after every statement in sight(like printf("<p>this is a test<p/>"); will be shown as <p>this is a test</p>). The other normal processings will be same as it is.
But I have no idea of other scripts like perl etc.

mlaich

zahadumy 12-13-2005 05:54 PM

I need to do this because I'm a student and I have to do a homework. Basically, I think I need a web server on my computer. How do I do this?

chrism01 12-13-2005 06:36 PM

All std distros, inc yours, come with Apache as std. Just install it if it's not already on the disk.

zahadumy 12-13-2005 07:00 PM

Quote:

Originally Posted by chrism01
All std distros, inc yours, come with Apache as std. Just install it if it's not already on the disk.

Thank you, this was really helpful.


All times are GMT -5. The time now is 12:03 PM.