å°äººæ°ã§ã®Webã¢ããªéçº CGIããPSGIã¾ã§ã®å¤é· - Download as a PDF or view online for free
æ®éã«Ruby on RailsãCGIï¼dispatch.cgiï¼ã§åããã¨é ããã¦ãã£ã¦ããã¾ããããgateway.cgiã使ãã¨ãããããã®é度ã§åãããã«ãªãã¾ãã æåã«ä»æããç´¹ä»ãã¦ãã¾ãã¨ã1åç®ã®ã¢ã¯ã»ã¹ããã£ãã¨ãã«å¸¸é§ããã»ã¹ãèµ·åãã2åç®ä»¥éã®ã¢ã¯ã»ã¹ã¯ãã®å¸¸é§ããã»ã¹ã«å¦çãããããã«ãªã£ã¦ãã¾ããCGIèªä½ã¯å¸¸é§ããã»ã¹ã«å¦çãæããã ããªã®ã§è»½ããã¨ããããã§ãããã ããï¼åç®ã®ã¢ã¯ã»ã¹ã¯é常éãCGIã§åä½ããããããã®é ãã§ãã 常é§ããã»ã¹ã¯ä¸å®æéã¢ã¯ã»ã¹ããªãã¨èªåçã«çµäºããã®ã§ï¼æ¬¡ã®ã¢ã¯ã»ã¹ããã£ãã¨ãã«ã¾ãèµ·åããï¼ãããããå¶éã®ããç°å¢ã§ã使ãããããããã¾ããã ãã¦ããã®gateway.cgiã§ãããRailsã®æ¨æºããã±ã¼ã¸ã®ä¸ã«å«ã¾ãã¦ãã¾ããã¾ã experimentalãããã§ãããå¤å°ããããå½ã¦ãã¨åãã¾ãã 使ãæ¹ã¯âã
HTTP ãããã¼ã® Content-type ãã£ã¼ã«ã Microsoft Word ã Excel ã®ãã¼ã¿ã Web ä¸ã«ç½®ãã¦ããã°ã Internet Explorer(IE) ãªã http://hoge.moge/~nminoru/page.xls ã®ããã«éã㨠ãã¡ã¤ã«ãä¿åããããã®ã¾ã¾éããã®ãã¤ã¢ãã°ãåºãã ãããã Netscape Navigator(NN) 㧠.doc 㧠.xls ãè¦ããã¨ããã¨ã ã¢ããªã±ã¼ã·ã§ã³ã®ãã¼ã¿ããã®ã¾ã¾æåããã¹ãã¨ãã¦éãã¦ã æååãããç»é¢ã表示ãããã ãã㯠Apache ãèªèã§ããªããã¼ã¿å½¢å¼ã«å¯¾ã㦠HTTP ã® "Context-type: text/plain" ãè¿ãã®ãåå ã®ããã ã ãããé²ãã«ã¯æ¡å¼µå㧠MIME ã¿ã¤ãã®è¨å®ãè¡ãã æã£åãæ©ãã¯ã å人㮠.htaccess ã§ä»¥ä¸ãè¨å®
moblogï¼ã¢ããã°ãæºå¸¯ããã®ã¡ã¼ã«éä¿¡ã§ããã°ãæ´æ°ããæè¡ï¼ã«ã¯ããã¾ã§ããMTã§moblogããããªãããã¦ãã¯ã³ã¬ãã§ããã¨ããã® moblog.uva.ne.jp ãå©ç¨ãã¦ãããã moblog.uva.ne.jp ã¯ã²ãããå人ã§è¡ã£ã¦ãã "å®é¨ç" ãªãµã¼ãã¹ã§ããã±ããããã¼ã§éå¶ãã¦ãã¾ããã©ãªãã«ãç¡æã§ãå©ç¨ããã ãã¾ãããå©ç¨ãããçµæã«ã¤ãã¦ã¯ãç¡è²¬ä»»ãç¡ä¿è¨¼ã§ããã¾ããæ£ç´ãªã¨ãããç¾å¨ã¯ãå¤å¿ã®ãããã¾ããµãã¼ããç©æ¥µçã«ã¯è¡ã£ã¦ããã¾ãããmoblog gw ã«ã¤ãã¦ã®å人çè¦è§£ [dh's memoranda] ã¨ç®¡çè æ¬äººã表æãã¦ããã¨ããã®åãµã¼ãã¹ã¯ï¼å©ç¨è ã®æ°ãå大ã«ãªã£ã¦ãããã¨ããã£ã¦ï¼æè¿ããªããµã¼ãã®åä½ãéãããã¨ã«ãªã£ã¦ããããã¡ã°ãåä»ãªã®ã¯æºå¸¯ããã¡ã¼ã«ãéä¿¡ãã¦ããããããã°ã«åæ ãããã¾ã§ã ãã¶æéããããï¼å ´åããã
2007å¹´03æ07æ¥11:00 ã«ãã´ãªLightweight Languages åæã«æ·»å - Ajaxã§ãããã°ããã - ï¼ IT è¨äºãã®ãã®ã¯ã¾ãããã®ã ãã©ãCGIã®é¨åããã¾ãã«ã²ã©ãã®ã§ã Ajaxã§ãããã°ããã - ï¼ IT ç§ã®ä»äºã®ç¾å ´ã§ã¯Javaãéçºè¨èªã¨ãã¦ä½¿ç¨ãããã¨ãå¤ãã®ã§ãJSPãServletã¨ãã¦å®è£ ãã¦ãã¾ãããä»åã¯ã¬ã³ã¿ã«ãµã¼ãã§ãå©ç¨ããããããã«Perlã§ä½æãã¾ããã以ä¸ã®ã½ã¼ã¹ãåèã«ãã¦ãã ããã Before ã¾ãã覧ä¸ãããåä¸ç´æ«ã«ããã¦ãã[ããã¯ã²ã©ã]ã¬ãã«ã§ããèè ã¯Javaå±ããã¨ã®ãã¨ãªã®ã§ãã®ç¹ãçãè¦ã¦ããä¸ä½ä½ãåèã«ãã¦æ¸ããã®ãæ¯éãèãããã ããã local %params; # ã¨ã¼ã¸ã§ã³ãã¯GETã¡ã½ããã ãã使ç¨ããã®ã§POSTã¯èæ ®ããªã # ãªã¢ã¼ããã°ã¨ã¼ã¸ã§ã³ãããéããã¦ããã°æ å ±ãç°
2007å¹´01æ27æ¥16:30 ã«ãã´ãªLightweight Languagesæ¸è©/ç»è©/åè© åæã«æ·»å - æ¥çµã½ããã¦ã§ã¢2007.03 以ä¸ã«ã¤ããã¦è²·ã£ã¦ã¿ãã æ¥çµã½ããã¦ã¨ã¢ 2007å¹´ 03æå· TAKESAKO @ Yet another Cybozu Labs: KENTããã¨ã®å¯¾è«åçãè¦ããã®ã¯æ¥çµã½ããã¦ã¨ã¢ã ãããã¦ãå»å¹´ã®11æã«:: KENT WEB - CGIã¹ã¯ãªãã :: ã§æå㪠KENT ããã¨å¯¾è«ããã¦ããã ããã¨ãã®è¨äºãåçã¤ãã§è¼ã£ã¦ãã¾ãã KENTããã®åçãè¦ããã®ã¯æ¥çµã½ããã¦ã¨ã¢2007.03ï¼1æ24æ¥çºå£²ï¼ã ãã§ãã 404 Blog Not Found:æ¥çµã½ããã¦ã§ã¢2007å¹´1æå· - perlã¯ã©ãã !? - ããããããã®ã³ã¡ã³ãç³ã訳ãªãã§ããã¨ãããã3æå·ãã楽ãã¿ã«ãã¨ããæãã§ãã詳ããã¯ç«¹è¿«ããã«è
ã¯ããã«ãPerlã§CGIã¢ããªã±ã¼ã·ã§ã³ãä½ããã¬ã¼ã ã¯ã¼ã¯ã®1ã¤ããCGI::Applicationã§ããCGI::Applicationã«ã¯ã©ã®ãããªCGIã¢ããªã±ã¼ã·ã§ã³ã«ãå¿ ãåå¨ããå®åå¦çããããããç¨æããã¦ãããèªãè¨è¿°ããã³ã¼ãã®éãæ¸ãããã¨ãã§ãã¾ããã¾ãããã©ã°ã¤ã³ã«ãã£ã¦ã足ããªãæ©è½ãè£ãã¾ããæ¬ç¨¿ã§ã¯ãCGI::Applicationã¨ãã¼ã¿ãã¼ã¹ãç¨ããåºç¤çãªCGIã¢ããªã±ã¼ã·ã§ã³ã®å®è£ æ¹æ³ã解説ãã¾ãã対象èªè Perlã§ä½ããã®CGIã¢ããªã±ã¼ã·ã§ã³ãä½æãããã¨ã®ããæ¹ãCGIãDBIãHTML::Templateã¢ã¸ã¥ã¼ã«ã使ç¨ãããã¨ã®ããæ¹ããã¬ã¼ã ã¯ã¼ã¯ã使ç¨ãããã¨ã®ãªãæ¹ã åä½ç°å¢ãPerl 5.8以éã使ã£ãCGIã¢ããªã±ã¼ã·ã§ã³ãæ£ããåä½ããWebãµã¼ããå¿ è¦ã§ããã¾ãã以ä¸ã®ä¾åã¢ã¸ã¥ã¼ã«ãCPANã§å°å ¥ãã¦ããã¦ãã ããã
ã¯ããã«ãPerlã§CGIã¢ããªã±ã¼ã·ã§ã³ãä½ããã¬ã¼ã ã¯ã¼ã¯ã®1ã¤ããCGI::Applicationã§ããCGI::Applicationã«ã¯ã©ã®ãããªCGIã¢ããªã±ã¼ã·ã§ã³ã«ãå¿ ãåå¨ããå®åå¦çããããããç¨æããã¦ãããèªãè¨è¿°ããã³ã¼ãã®éãæ¸ãããã¨ãã§ãã¾ããã¾ãããã©ã°ã¤ã³ã«ãã£ã¦ã足ããªãæ©è½ãè£ãã¾ããæ¬ç¨¿ã§ã¯ãCGI::Applicationã¨ãã¼ã¿ãã¼ã¹ãç¨ããåºç¤çãªCGIã¢ããªã±ã¼ã·ã§ã³ã®å®è£ æ¹æ³ã解説ãã¾ãã対象èªè Perlã§ä½ããã®CGIã¢ããªã±ã¼ã·ã§ã³ãä½æãããã¨ã®ããæ¹ãCGIãDBIãHTML::Templateã¢ã¸ã¥ã¼ã«ã使ç¨ãããã¨ã®ããæ¹ããã¬ã¼ã ã¯ã¼ã¯ã使ç¨ãããã¨ã®ãªãæ¹ã åä½ç°å¢ãPerl 5.8以éã使ã£ãCGIã¢ããªã±ã¼ã·ã§ã³ãæ£ããåä½ããWebãµã¼ããå¿ è¦ã§ããã¾ãã以ä¸ã®ä¾åã¢ã¸ã¥ã¼ã«ãCPANã§å°å ¥ãã¦ããã¦ãã ããã
ãä»äºã§ã¬ã³ã¿ã«ãµã¼ãã¼ä¸ã§CGIãæ¸ãç¾½ç®ã«ãªã£ãã®ã§ãããroot権éã¯ãããã·ã§ã«ã使ããªãç°å¢ãªã®ã§Catalystã«ã©ã£ã·ãã¤ãã£ã¦ãããã¯ã¨ãã¦ã¯é¢åãããã¦æ°ãçãããã§ãã ç¹ã«DBå¨ãã DBIç´ããããªãã¦é人éçãªä½æ¥ããã£ã¦ããã¨ãã°ã¤ã¶ãã ãã§é ããããããªãããã§ãã ã§ããªãã¨ãClass::DBIã ãã§ã使ããªãã調ã¹ã¦è¦ã¾ããã CDBIãä¾åãã¦ããã¯ã©ã¹ã§XSã使ã£ã¦ããã®ã¯versionã¨Cloneã ãã§ãã ãããªãããç¨åº¦ç°å¢ãæ´ã£ã¦ããã¬ã³ã¿ã«ãµã¼ãã¼ãªããªãã¨ããªãã ããã£ã¦ãã¨ã§èª¿ã¹ã¦è¦ãã¨ãé½åã®ãããã¨ã«versionã¯--perl_onlyãªãã·ã§ã³ä»ãã§Makefile.PLããã°Pure Perlãªã¯ã©ã¹ãä½æãã¦ãããããCloneã¯Clone::PPãªãPure PerlãªCloneã¯ã©ã¹ãããã¾ããã ã§ããã£ã¦ã¿ã¾ããã
ãã®ä¸ã§ä¸çªåãããããã¯ã©ãã¯ã¯CGIã¯ã©ãã¯ã ã¨æãã¾ããåç´ãªçç±ã§ãããã®ä¸ã«åå¨ããã»ã¼å ¨ã¦ã®ã¯ã©ãã¯ã¯ãè£æãã§ããä¾ãã°FCçãã©ã¯ã¨4ã§ã³ã¤ã³è²·ãæã«æ¥µç«¯ã«å¤ãææ°ãæå®ããã¨å¤æ®µãå®ããªãã£ã¦è£æããã£ãã®è¦ãã¦ã¾ããï¼ãã®åçã¯åç´ã§ãããã ãè²·ãç©ã§ãããæãããã¨ããå¤æ°ã0-16777215ã®é åã¾ã§ããç¨æããã¦ããªããã ãã20000000Gã®è²·ãç©ãªãã°å¤æ®µã¯20000000-16777215Gã«ãªãã ãï¼ããã°ã©ã ã®ï¼åçãåãããã¨ãããã¨ã¯ãè£æã®åçãåãããã¨ãããã¨ã§ããããã¦ãã¯ã©ãã¯ã¯è£æã ãã¨ããã®ã¯ããããã°(ï¼)ããã¦ããéç¨ããªãããã¨ããæå³ã§ãããã¾ãã ãããæ®éã®Winã¦ã¼ã¶ã¼ã¯UNIXã®åä½åçã¯å¿è«Winã®åä½åçï½¥IEã®åä½åççã ãç¥ã£ã¦ãã訳ã§ã¯ããã¾ããããã é«ç´è¨èªï¼æã 人éã«ç解ããããè¨èªï¼ã§è¨è¿°ãããC
2006å¹´05æ28æ¥07:30 ã«ãã´ãªLightweight Languages perl - Taint Mode æåå³åã§ã¯ããã¾ãããtaint modeã¾ã§ãã¡ãã¨ç´¹ä»ããä¸ã«ããµã³ãã«ã³ã¼ãã«å ¨é¨-Tãã¤ãã¦ããã®ã¯ãæ¥æ¬èªã®ãã®ã§ã¯æèã ãããããã¾ããã é人ã«å¦ã¶Perl/CGIéå ´ å°é£¼ å¼¾ [ã] Perl ã® -T ã¹ã¤ãããæãã ããã§ãï¼ï¼ï¼Amazonãã¼ã±ãããã¬ã¤ã¹ã§ã¯ãã¬ãã¢ãä»ãã¡ãã£ã¦ã¾ãããä»è¦ã¦ããããªã«å 容ã¯å¤ããªã£ã¦ãªãããã«ãæãã¾ãã ä»ã«ãäºä¾ãããã°ç´¹ä»ãã ãã¼ãããªè¨æ¶ã§ãããO'Reilleyã®CGIæ¬ã¯-Tä»ãã ã£ãããã«æãã¾ãã ã¤ãã§ã«ãæ·»åã [ã] Perl ã® -T ã¹ã¤ãã åé¿ããã«ã¯æé¤ãå¿ è¦ãä¾ãã°5è¡ç®ã以ä¸ã®ããã«ããã¨OKã 5 if ($fn =~ /^([a-z0-9]+)$/i) {$fn
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}