CGI
CGI «Computergenerated imagery» .
CGI ( . Common Gateway Interface « ») , -. , -, , «» () «CGI-».
, , cgi ( cgi-bin) , : , - . - Apache, , httpd.conf .htaccess , .
CGI -.
|
|
[]
#!/usr/bin/python import sys try: import cgitb cgitb.enable() except ImportError: sys.stderr = sys.stdout def cgiprint(inline=''): sys.stdout.write(inline) sys.stdout.write('\r\n') sys.stdout.flush() contentheader = 'Content-Type: text/html' thepage = '''<html><head> <title>%s</title> </head><body> %s </body></html> ''' h1 = '<h1>%s</h1>' if __name__ == '__main__': cgiprint(contentheader) # cgiprint() # title = 'Hello World' headline = h1 % 'Hello, world!' print thepage % (title, headline) # html
-
Program first; -
Begin -
Writeln('Content-type: text/plain');
-
Writeln; -
Writeln('Hello, world!');
-
End.
#include <stdio.h> int main(void) { printf("Content-Type: text/plain;charset=us-ascii\n\n"); printf("Hello, world!\n\n"); return 0; }
[] .
[]
- CGI 1.1(RFC3875) (.)
- CGI
- CGI
[]
- , CGI- Perl = Writing CGI Application with Perl. .: «», 2001. . 400. ISBN 0-201-71014-5
- CGI- 24 = Sams Teach Yourself CGI in 24 Hours. .: «», 2001. . 368. ISBN 0-672-31880-6
|
Canonical XML CDF CSS DOM Geolocation API HTML ITS MathML OWL P3P PLS RDF (Schema) SISR SKOS SMIL SOAP SRGS SSML SVG SPARQL Timed Text VoiceXML WSDL XForms XHTML XHTML+RDFa XInclude XLink XML (Base Encryption Events Information Set namespace Schema Signature) XPath / 1.0 / 2.0 XPointer XProc XQuery XSL XSL-FO XSLT () XUP |
|
| Guidelines | |
| Initiative | |
| Deprecated | |
| - | |
|---|---|
| |
() ( ) - - - () BitTorrent- ( ) |
| |
¸ (SEO) |
| , , |
|
|
- () |
|

