about CGI

J

joker

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? how Perl find data?
 
B

Brian McCauley

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.

This appears to be a question about CGI and/or your chosen web server
software.

This is a newsgroup about Perl.
In C++ the data I need to consider is stored in arrays or
variables. The html page inside the server how is stored?

However you want.
How a CGI .exe can find that data?

Either you have not got your problem clear in your mind or your
English is not sufficient to express your problem in English. I
suggest you look for a forum where your native language is spoken and
where CGI is on-topic.
how Perl find data?

Perl can execute a program written in another language and parse the
output. Alternatively there are ways to link or embed other languages
in perl.
 
P

Paul Lalli

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? how Perl find data?


#!/usr/bin/perl
use strict;
use warnings;
use CGI qw/:standard/;

print header();
print start_html("My CGI Results page");
for my $param_name (param()) {
my $param_value = param($param_name);
print p("For the field $param_name, you entered: $param_value");
}
print end_html;
__END__

For more information, see the documentation of the CGI module at:
http://perldoc.perl.org/CGI.html

Paul Lalli
 
J

Jürgen Exner

joker said:
I don't know Perl to build a CGI script but I know C++.

Ok, then why don't you use C++ to write that CGI application?
I need to
know how the server use a "file.exe"

It may or it may not. Depends how that web server is configurated.
and the html page from the client browser.

???
Sorry, that sentence doesn't parse for me.
In C++ the data I need to consider is stored in arrays or
variables. The html page inside the server how is stored?

It may be stored statically although that kind of defeats the purpose of CGI
which is normally used to generated the HTTP response on the fly.
How a CGI .exe can find that data? how Perl find data?

Well, many different ways... Actually the same way a non-CGI-application
would find the data.

You really don't give enough relevant information to actually help you.

jue
 
J

joker

Thanks a lot to all.



A word to Bryan

Really my english is so important?? The others guys has answered me
very well. You have to be more flexible about language...You are on
internet, DO YOU KNOW THAT?
 
B

Brian McCauley

Thanks a lot to all.

A word to Bryan

Really my english is so important?? The others guys has answered me
very well. You have to be more flexible about language...You are on
internet, DO YOU KNOW THAT?

I don't care about your poor English so long as you manage to express
yourself. (I'm not "she who must no be named").

You may consult my posting history to see that I care very much about
how well the questions are asked in terms of the asker thinking about
how they can help the answerer. I care not at all if people use very
limited English.

For the record: I don't think _anyone_ understood your question.

Paul's response only shows that he picked up on the one word "CGI". He
showed you a simple Perl CGI script and told you to RTFM. I can't
really see how Paul's example script would help you any more than the
"Synopsis" section of Perl's CGI manpage. So in effect Paul's response
was just an RTFM.

So that's two "we don't understand" responses as one "RTFM" response.

I gave you the benifit of the doubt and assumed you had a valid
question that you were unable to express clearely. I did _not_ assume
you simply could not be bothered to RTFM so I didn't think it would
help to suggest that you RTFM.

I am very sorry if I miss-judged you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top