CGI????????? - PowerPoint PPT Presentation

About This Presentation
Title:

CGI?????????

Description:

Title: Cashflow 101 Author: Mika Ohtsuki Last modified by: Mika Ohstuki Created Date: 8/5/2002 4:26:35 PM Document presentation format – PowerPoint PPT presentation

Number of Views:173
Avg rating:3.0/5.0
Slides: 22
Provided by: Mika201
Category:
Tags: cgi

less

Transcript and Presenter's Notes

Title: CGI?????????


1
CGI?????????
  • ????
  • ??????????????
  • ?? ?? ??

2
?????
  • CGI???????????????
  • ???????????
  • ?????????

3
Web???
Web??????
Web???
?????
???????
?????
?????? (???????)
HTML?? ??
?????
?????? ??????
???????HTTP
4
Web???
  • ?????W3C
  • http//www.w3c.org/
  • W3C??????????????
  • http//www.w3.org/Consortium/Translation/Japanese
  • ??????
  • HTTP, HTML(XHTML), XML, etc.

5
???????HTTP
  • HTTP(HyperText Transfer Protocol)
  • Web?????????????
  • ??????????????????
  • 1????????????????????
  • GET, POST, HEAD, PUT,
  • ??HTTP, HTTP-KeepAlive
  • ???????????????
  • HTTPS, SHTTP

6
????HTML(XHTML)
  • HTML(HyperText Markup Language)
  • WWW?????????????
  • HTML????????HTML?????
  • ?????????SGML???
  • ???????????????
  • XML???XHTML
  • ???????????????
  • ??????

7
XML
  • XML
  • ?????????
  • ?????????????????DB
  • ??URL
  • http//www.xml.org/
  • SGML???
  • ??????????
  • ?????????

8
?????????
  • ???????
  • ??????????????????
  • ??????????
  • JavaScript, Applet, ??????
  • ???????
  • SSI?CGI????????
  • ????????CGI

9
???????????SSI
  • Server Side Include(SSI)
  • ???????????????
  • ???????????????????
  • ????????????
  • ?
  • lt!--config timefmt"y/m/d HM" --gt
  • lt!--flastmod file"index.html" --gt
  • Apache??
  • Options Includes ??? IncludesNOEXEC
  • AddType text/html .shtml
  • AddHandler server-parsed .sthml

10
???????????CGI
  • Common Gateway Interface(CGI)
  • Web?????Web?????????????????????????
  • ????????
  • ?????????
  • ltform actionaaa.cgi" method"postgt
  • ltinput typetext nameName valuePlease
    input your namegt
  • ltinput typesubmit nameSUBMIT
    valueSUBMITgt
  • lt/formgt
  • Apache??
  • Options ExecCGI
  • AddType application/x-httpd-cgi .cgi
  • AddHandler cgi-script .cgi

11
CGI???
Web???
Web??????
?????
????
CGI
HTTP
????
?????
?????
12
CGI?????????
GET /test.cgi?n1v2 ??? POST /test.cgi
GET
POST
????
????
?????
????
?????
Content-type lt??gt ???
13
CGI??????????
  • ??????Web???????????
  • http//www.ipa.go.jp/security/awareness/administra
    tor/secure-web/
  • ??????

14
CGI?????
  • ??????????????
  • ???????
  • ?????????????
  • Perl, PHP, Ruby, Python, Tcl,
  • ????
  • ??????????????
  • C/C(C), Java, Pascal(Delphi),

15
Perl
  • ??URL
  • ??
  • ???????????
  • ???????
  • ????????????CPAN
  • Apache??
  • ???CGI??
  • mod_perl??

16
PHP
  • ??URL
  • ??PHP????
  • http//www.php.gr.jp/
  • ??
  • HTML??????????
  • CGI????????
  • Apache??
  • mod_php??
  • AddType application/x-httpd-php .php ??

17
????????
  • ????????
  • ??????????????
  • ??, CSV, XML,
  • ??????
  • ????????
  • ??(db), RDB(SQLDB), OODB, XMLDB,

18
XML???????
  • HTMLXML??????API
  • ??http//www.atmarkit.co.jp/fxml/index.html
  • ??????DOM
  • XML????????(????????)
  • ??
  • http//www.doraneko.org/misc/dom1/introduction.htm
    l
  • ?????????SAX
  • ??????????
  • ??
  • http//www.saxproject.org/

19
SQLDB????
  • ????SQLDB
  • mySQL ?????
  • PostgreSQL ?????????
  • ??????
  • Perl DBI.pm(??)?Pg.pm??
  • PHP PHPLIB??DB?????????
  • Java JDBC(??)?ODBC(OO??)

20
Apache httpd???
  • /etc/apache/httpd.conf???
  • SSI, CGI???
  • mod_php, mod_perl???
  • ?????????
  • vi??????????
  • /etc/init.d/apache start

21
PHP?????????
  • lthtmlgt
  • ltheadgtlttitlegtTest PHPlt/titlegtlt/htmlgt
  • ltbodygtlth1gtTest PHPlt/h1gt
  • ltform method"POST" action"test.php"gt
  • ltinput type"TEXT" name"name" size"20" /gt
  • ltinput type"SUBMIT" name"TEST" value"TEST" /gt
  • lt/formgt
  • lthrgt
  • ltpgtInput lt?php print name ?gtlt/pgt
  • lt/bodygtlt/htmlgt
Write a Comment
User Comments (0)
About PowerShow.com