- #1
- 4,652
- 38
I am having trouble understanding what CGI scripts are. What I *think* I know about it is that there is no "CGI" language, and when we say CGI script, we mean something written in Perl or Php or some other language that is run on the server. But I could just be utterly confused.
I was looking at this example:
#!/usr/bin/perl -wT
print "Content-type: text/html\n\n";
print "Hello, world!\n";
The 2nd and 3rd lines are written in Perl, I believe. But what is the first? This is just an instruction to the server to tell it the language? And what language is that first line written in? Is it a UNIX OS command? I don't know anything about UNIX, so that may be why I don't know what's going on.
Thanks!
I was looking at this example:
#!/usr/bin/perl -wT
print "Content-type: text/html\n\n";
print "Hello, world!\n";
The 2nd and 3rd lines are written in Perl, I believe. But what is the first? This is just an instruction to the server to tell it the language? And what language is that first line written in? Is it a UNIX OS command? I don't know anything about UNIX, so that may be why I don't know what's going on.
Thanks!