For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > August 2007 > about CGI









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author about CGI
Joker

2007-08-16, 6:55 pm

I don't know Perl to build a CGI script but I know C++. I need to
know how the server use a "file.exe" and the html page from the client
browser. In C++ the data I need to consider is stored in arrays or
variables. The html page inside the server how is stored? How a
CGI .exe can find that data? Maybe you can tell me how the Perl find
data.

Mr. Shawn H. Corey

2007-08-16, 9:56 pm

joker wrote:
> I don't know Perl to build a CGI script but I know C++. I need to
> know how the server use a "file.exe" and the html page from the client
> browser. In C++ the data I need to consider is stored in arrays or
> variables. The html page inside the server how is stored? How a
> CGI .exe can find that data? Maybe you can tell me how the Perl find
> data.
>
>


OK, English is not your best language. And you work in M$ Windows. These are not criticisms. These are facts. If you disagree, please say so. (No arguments, just facts.)

A CGI runs within the environment of the web server. This is true whether is M$ Windows or *NIX. Its current directory is either the the starting directory of the web server (not common) or the directory of the CGI (more common). You can find your data
relative to your working directory or by absolute path.

As sample of your code would help.


--
Just my 0.00000002 million dollars worth,
Shawn

"For the things we have to learn before we can do them, we learn by doing them."
Aristotle
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com