ç»åãææ¸ã®ç¡æ転è¼ãç¦ãã¾ã. (c)1995-2011 CGI RESCUE All rights reserved. ä¸è¬ç¬¬äºç¨®é»æ°éä¿¡äºæ¥è A-11-3627
ç»åãææ¸ã®ç¡æ転è¼ãç¦ãã¾ã. (c)1995-2011 CGI RESCUE All rights reserved. ä¸è¬ç¬¬äºç¨®é»æ°éä¿¡äºæ¥è A-11-3627
CGI ãä½æããä¸ã§ãããã¹ãããã¯ã¹ãã©ã¸ãªãã¿ã³ãªã©ã®ãã©ã¼ã ã«å ¥åãé¸æãããç¶æ ãåãè¾¼ããã¨ã¯é¿ãã¦ã¨ããã¾ããã ããã§ã¯ãå ¥åãã©ã¼ã ã®ãã¼ã¿ãã©ã®ããã« CGI ã§åãè¾¼ãã®ããç´¹ä»ãã¾ãã åå¿è åãã«åé ã§ã§ GET 㨠POST ã«ã¤ãã¦ã解説ãã¾ãã ç®æ¬¡ HTTP ã¡ã½ãã ãã©ã¼ã ãã¼ã¿ããµã¼ãã¼ã«éä¿¡ããæ¹æ³ (ã¡ã½ãã) ã«ã¯ GET ã¡ã½ãã㨠POST ã¡ã½ãããããã¾ãã HTTP ãããã³ã«ã§ã¯ãä»ã« PUT ã¡ã½ããã DELETE ã¡ã½ãããè¦å®ããã¦ãã¾ããã ãã©ã¦ã¶ã¼ã§å©ç¨ã§ããã®ã¯ GET ã¡ã½ãã㨠POST ã¡ã½ããã® 2 ã¤ã ãã§ãã GET ã¡ã½ãããã¯ãHTTP/0.9 ããè¦å®ããã¦ãããå½æã§ã¯ãã¼ã¿ããµã¼ãã¼ã«éä¿¡ããå¯ä¸ã®æ段ã§ããã ä»ã§ããã¼ã¿éä¿¡æ段ã¨ãã¦ä½¿ããã¦ãã¾ãããéä¿¡ãã¼ã¿ã URL ã¨ãã¦ãã©ã¦ã¶ã¼ã®
ãã¼ã¸ã®é²è¦§è ãä½ãããªãã¦ãããã¼ã¸ãé²è¦§ããã ãã§ãé²è¦§è å´ã®ãã©ã¦ã¶ããµã¼ãã¼ããCGI ãç½®ããã¦ãããµã¤ãå´ã®ãµã¼ãã¼ã«ãããããªãã¼ã¿ãéä¿¡ãã¦ãã¾ããããã§ã¯ãããããèªã¿åã£ã¦å©ç¨ããæ¹æ³ãç´¹ä»ãã¾ãã ä¸è¨ããæ許ã®ç«¯æ«ï¼RDE ãªã©ï¼ã使ããruby ã¨ãã¦å®è¡ãã¦ã¿ã¦ãã ãã #!ruby p ENV p ã¯ãå 容ããã®ã¾ã¾å ¥åã«ä½¿ããå½¢ã«è¡¨ç¤ºãã¾ã ENV ã®ä¸èº«ãããã·ã¥ã¨ãã¦è¡¨ç¤ºãããã¯ãã§ãããã·ã¥ã®ä¾ï¼{"apple" => "ringo", "grape" => "budou"} ENV ã®å 容ã¯ãruby ãå®è¡ãããã¨ãã®ç°å¢ã表ããã®ã§ï¼ç°å¢å¤æ°ã¨å¼ã°ãã¦ãã¾ãã使ç¨ä¸ã®PCããµã¼ãã¼ã®ä»æ§ãruby å®è¡æã®ç¶æ³çã«ãã£ã¦ãå 容ã¯ç°ãªããã®ã¨ãªãã¾ãã ä¸è¨ã®ãããªè¡¨è¨ã§ã¯è¦ã¥ããã®ã§ãä¸è¨ã®ããã«è¡¨ç¤ºãæ´ãã¦ã¿ã¾ããããCGI ã¨ãã¦ã使ãããã
Ruby/eRubyã«ããCGIããã°ã©ãã³ã° ã¼ã¼ã¿ãããæ ªå¼ä¼ç¤¾ åç° ä¿®å¾ shugo@zetabits.co.jp Rubyã¨ããã¹ã¯ãªããè¨èªããåç¥ã§ãããããæ°å¹´ åã¾ã§ã¯ã¾ã ä¸é¨ã®äººã ã«ããç¥ããã¦ããªãã£ãã ã®è¨èªããç¾å¨æ¥éã«æ®åãã¤ã¤ããã¾ãããã§ã« ããã¤ãã®æ¸ç±ãåºçããã¦ãã¾ãããéèªãªã©ã§ã åãä¸ãããã¦ãã¾ããããããèå³ã¯ããããã©ã å®éã«ä½¿ã£ããã¨ã¯ãªãã¨ããæ¹ãã¾ã å¤ãã®ã§ã¯ãª ãã§ããããã ããã§ãæ¬ç¨¿ã§ã¯Rubyã®ç¹é·ã«ã¤ãã¦ç°¡åã«èª¬æãã ä¸ã§ãRuby/eRubyã«ããCGIããã°ã©ãã³ã°ã«ã¤ã㦠解説ãã¾ãã Rubyã¨ã¯? Rubyã¯ã¾ã¤ãã¨ããã²ãæ°ã«ãã£ã¦è¨è¨ã»å®è£ ããã ã¹ã¯ãªããè¨èªã§ããããªãã¸ã§ã¯ãæåã¹ã¯ãªãã è¨èªãã¨ç´¹ä»ããããã¨ãå¤ãããã«ãæ¬æ ¼çãªãªã ã¸ã§ã¯ãæåæ©è½ãåãã¦ãã¾ãã ã§ã¯Rubyã¨ã¯å ·ä½çã«
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}