çµå©ããååã«è´ã£ãã·ã¹ãã ã®è©±
å
é±æ«ã®åææ¥ã«ååã®çµå©å¼ãããã¾ããã
äºæ¬¡ä¼ã®æ¹ã«åå ããã®ã§ãããããä¼ã ã£ãã
ä¼ç¤¾ã§ããªã«ããã¬ã¼ã³ãããããã¨ãããã¨ã«ãªãããç¥ãç¨ã«ã·ã¹ãã ãä½ã£ã¦ãã¬ã¼ã³ããã¾ããã
å
容ã¯ãåã¡ã§æ«é²å®´ãäºæ¬¡ä¼ã®æä¸ã®åçããèªåæ®ãããåçãéã£ã¦ãæ¬æã«ã¡ãã»ã¼ã¸æ¸ãã¦éãã¨ãäºäººã«è´ã£ãURLãéãã¨ããã©ãã ã¼ãã¼ã¨ãã¦è¦ããã¨ãåºæ¥ãã¨ãããã®ã ã
ç¹å¥ãªæè¡ã¯ä½¿ç¨ãã¦ããªãããé²ãæ¹ãé常æ¡ä»¶ã®é²ãæ¹ã«ãéãããã®ãããã¨æãã®ã§ãã¨ã³ããªãæ¸ãã¦ã¿ãã
ã¾ããä¼ç»
ã©ããªä¼ç»ã«ãããã2é±éãããåããç·´ãå§ãã¾ããã
éå»ã«åã¡ãåç»ãæºå¸¯ããéããPCä¸ã®Flashã§ã¤ãªãã¦è¦ããã¨ããã®ã¯ãã£ããã¨ããã£ãã®ã§ããããã«ã¹ã¿ãã¤ãºããã¨ããæ¹åã«æ±ºå®ãããã¯ãããªã決ã¾ã£ãã
è¨ç½®å ´æãªã©ã®æ±ºå®
ä»åã®ã·ã¹ãã æ§æã¯ãä¸è¬çãªLAMPæ§æãLinux+Apach+MySQL+phpã ãããã¯ããã¡ã®é常æ¡ä»¶ã¨åãã
ä»ã«ã決ããªããã°ãããªããã®ã¨ãã¦ãè¨ç½®ãµã¼ãããã¡ã¤ã³ãªã©ãããã
è¨ç½®ãµã¼ãã¯ãä¼ç¤¾ææã®å
±ç¨ãµã¼ãã«ãããã¡ã¤ã³ã¯ãä¼ç¤¾ãã¡ã¤ã³ã«ãµããã¡ã¤ã³ãåããã¨ã«ãªã£ãã
ã½ã¼ã¹ã®å
±æã«ã¯ãSVNã使ãããä¼ç¤¾ã®SVNã§ã¯ã³ãããã¡ã¼ã«ãæµãã¦ãã¾ããå½æ¥åã«ã°ãã¦ãã¾ãããªã®ã§ãAssemblaã使ã£ã¦ã¿ããã¨ã«ããã
http://www.assembla.com/
ãããã¿ã¤ãä½æ
ã¡ã¼ã«åä¿¡é¢é£ãphpã使ã£ã¦ä½æãSubjectãæ¬æã¯DBä¸ã«ä¿åãããç»åã¯convertãããã¦ã[id].jpgã¨ããååã§å®ãã¡ã¤ã«ã¨ãã¦ä¿åãããã¨ã«ããã
ããã¾ã§ããåã
æ¥ã¾ã§ã«è¡ã£ã¦ãããã¨ã
ç´ç³»ã®ç¨æ
å®éã«æ«é²å®´ãäºæ¬¡ä¼ã«åå ãã人ã«ãåã¡ãéã£ã¦ãããããã®ã説æãæ¸ããç´ãç¨æããã®ã¨ãäºäººã«URLãä¼ããæ¹æ³ã工夫ãããã¨ã«ãªãããã¡ãã¯ãå¶æ¥ã®äººããããããã®ãè²·ã£ã¦ãã¦ããã£ãããã¦ãã¾ããã
éçºé¨éã¨ã¯å¥ãªã®ã§ãã¡ãã£ã¨é²ãæ¹ãªã©ã¯ææ¡ãã¦ãã¾ããã§ãããããã
ã©ã³ããã¼ãã£ã³ã°
åæ¥ã®ãæ¼ã«ãããã¸ã§ã¯ãã«ããããã¡ã³ãã¼ã§ãã©ã³ãMTGãè¡ãããããã¿ã¤ãã®ãã©ãã·ã¥ã¢ãããæ®ä½æ¥ã®ã¿ã¹ã¯ç¢ºèªãªã©ãããã
ã¾ãã¯ãä½æ¥ã®æ´ãåºãã
ã»äºäººãè¦ããã©ãã ã¼ãã¼ç»é¢ã®ãã¶ã¤ã³
ã»äºäººã«URLãä¼ããããã®æ¹æ³
ã»æ¥å ´ãã人ã«ä½¿ãæ¹ãæããç´è³æï¼ã«ã¼ãï¼ã®ãã¶ã¤ã³
ã»æ¥å ´ãã人ã«ãµã³ãã«ãè¦ã¦ãããããã®æºå¸¯ãµã¤ã
ãªã©ãªã©ã
ã¾ãã¯ããã©ãã ã¼ãã¼ç»é¢ã®ãã¶ã¤ã³ã
ãããã¿ã¤ãã§ãã§ã«ããç¨åº¦ã¾ã§ä½ããã¾ãã¦ããã®ã ãããã¶ã¤ã³ãã¼ããã£ã¬ã¯ã·ã§ã³ãããç»é¢ã¤ã¡ã¼ã¸ãç´ã«æ¸ãã¦å
±æã
ãã¶ã¤ãã¼ãå¤æ ãä½æãããã¨ã«ãªãããããéçºãåãåã£ã¦ä»ä¸ãããã¨ã«ãªã£ãã
次ã«ãäºäººã«URLãä¼ããæ¹æ³ã
ä¸å¿Basicèªè¨¼ããããäºå®ãªã®ã§ãID/PWãä¼ããªããã°ãªããªããããã ä¼ããã ãã§ã¯è¸ããªãã®ã§ãçµå©è¨¼ææ¸ã®ç¨ç´ã«ãåæã«æ¿èªã¨ãããã¨ã§ãå
¨ç¤¾å¡ã®ç´çãµã¤ã³ã¨å
±ã«ãURLãªã©ãæ¸ãã¦è´ãã¨ãããã¨ã«ãªã£ããããã¯ãã§ã«æ±ºã¾ã£ã¦ãã¦ãå¶æ¥ãããè²·ã£ã¦ãã¦ããã¦ãã¾ããã
çµæ§éåãªæãã
æ¥å ´ãã人ã«ã使ãæ¹ãä¼ããããã®ç´è³æã§ãããããã¯ãA5ãµã¤ãºãäºã¤æãã«ãããã¨ã«ãªã£ãã
ã¿ããªã好ãåæã«ã¤ã¡ã¼ã¸ãè¨ãä¸ã§ããã¶ã¤ãã¼ãããè£ç´ã«ææ¸ãã§ãã¶ã¤ã³ã¤ã¡ã¼ã¸ãæ¸ãããããè¦ã¦ããã«è©±ãã¨ããæãã
æè¨ã¯ããããå°ãå¶æ¥ã管çé¨ã®äººãä½ã£ã¦ãããã®ããããã«ãã£ã¬ã¯ã·ã§ã³ãé¬ããã¨ã«ãªã£ãã
ç´ã®ã«ã¼ãã ãã§ã¯ä¼ããã«ããã¨ãããã¨ã§ãæºå¸¯ãµã¤ããä½ããããã«ãµã³ãã«ã®ãã©ãã ã¼ãã¼ãè¦ããããã«ãããã¨ãããã¨ã«ãªããããã®ãã¶ã¤ã³ã¨æè¨ã®é¬ãã®ãã«ã¼ãã¨åæ§ã«ã
大ã¾ããªæµãã¨ä½æ¥åæ
ã決ã¾ã£ãã¨ããã§ãã©ã³ãMTGãçµãããåå¾ã¯é常ã®ä»äºããã¤ã¤ä½æ¥éå§ã
å®ä½æ¥
ä»é¨ç½²ã®ä½æ¥ã¯ã¡ãã£ã¨è¦ããªãã¨ããããã£ãã®ã§ãéçºå´ã§ãããã¡ã¼ã«åä¿¡ã·ã¹ãã ã¯ã»ã¼åºæ¥ã¦ãããå°ãä¿®æ£ã
åä¿¡ããã¡ã¢ãã«ã¤ãã¦
ã¾ãã¯ãã·ã¹ãã ã¨ã©ã¼ã§ãã¾ãåçãåä¿¡ã§ããªãã£ãå ´åã«ãåéããé¡ãããããã«ã¯ãããªãã®ã§ãããã«å¯¾å¿ããããã«ä»¥ä¸ã®ãããªæ§æã«ããã
1. m@example.com ããªãã¤ã¬ã¯ã¿ã¨ãã¦ä½æ
ã-> m-reg@example.com
ã-> xxxx@example.com (éçºè
ã®ã¡ã¢ã)
2. m-reg@example.com ã§ã·ã¹ãã èµ·å
ããã§ãm-regãã¨ã©ã¼ã«ãªã£ãã¨ãã¦ãã転éèªä½ã¯åé¡ãªãåãã¦ããã®ã§ãéçºè
ã«å±ããã¡ã¼ã«ãã復æ§ã§ããããã«ããã
次ã«å±ããã¡ã¼ã«ã«ã¤ãã¦
éããã¦ããã¡ã¼ã«ããééãããä¸é©åãªå
容ãã¾ãã¯ãåçã®ç¸¦æ¨ªãå転ãã¦ãã¾ã£ã¦ããå ´åãããã¾ãã
ãªã®ã§ãããã«å¯¾å¿ããããã®ä»çµã¿ãèãã¦ã¿ãã
ä¸é©åãªå
容ã¯DBå´ã§åé¤æ¥æãç»é²ãããã¨ã§è«çåé¤ã«ãããã¨ã«ããã
ç©çåé¤ã§ãããã£ãã®ã ããæä½ãã¹æã«å¾©æ§ã®æéãæ©ãããããã«è«çåé¤ã«ãã¾ããã
å転ã®ããã«ã¤ãã¦ã¯ãåã¡åä¿¡æã«ã800x600ã«ãªãµã¤ãºããã¨ããã§ã90度ã180度ã270度ã«å転ããç»åãåæã«ä½æãã¦ããã¦ãã·ã³ããªãã¯ãªã³ã¯ã§ä½¿ç¨ãããã¡ã¤ã«ã決å®ãããã¨ã«ããã
ãã¡ã¤ã«å㯠[id].jpgãªã®ã§ã1_0.jpgã1_1.jpgã1_2.jpgã1_3.jpgã¨ãã風ã«å®ä½ã®ç»åãä½æãããããã1.jpgã¨ããååã«ã·ã³ããªãã¯ãªã³ã¯ãå¼µã£ãã
phpã®å ´åãrealpathé¢æ°ã使ããã¨ã§ãã·ã³ããªãã¯ãªã³ã¯å
ãã¡ã¤ã«åãåå¾ã§ããã®ã§ãããããã¨ã«æ¬¡ã«å転ããè§åº¦ãå¤å¥ããã¨ããææ³ãã¨ãã¾ããã
帰ã£ã¦ãã¦ãããç®è¦ã§ãã§ãã¯ãã¦ãã¼ã¿ä¿®æ£ã§ãããã£ãã®ã ããäºäººã«ã¯URLãæ«é²å®´ã§ä¼ããã®ã§ã帰å®
ãã¦è¦ãããåã«èª¿æ´ãã¦ããããã®ã§ããªã¢ã«ã¿ã¤ã ã§ä½æ¥ãã§ããä»çµã¿ãæ§ç¯ããã
æ¹æ³ã¨ãã¦ã¯ãã¡ã¼ã«åä¿¡æã«éçºè
ã®æºå¸¯ã¡ã¢ãã«ãæ¬æã¨ãåé¤ã»å転ãã§ãã管çç»é¢ã®URLãã¤ããã¡ã¼ã«ãéããå±ãããã®ãçã£ç«¯ããç®è¦ãã§ãã¯ãã¦å¯¾å¿ããã
æ¥å ´è ã«é ãã«ã¼ãã«ã¤ãã¦
ãã¡ãã¯ããã¶ã¤ãã¼ãããé å¼µã£ã¦ã¾ããã
ã¢ã¤ã³ã³ãç»åã®é
ç½®ããã©ã³ãã®é¸æãªã©ãã¯ãã»ã³ã¹ã£ã¦å¤§äºã ãªãã¨æã£ãã
åçæ®ã
ã¾ãã¯ãèªåãã¡ã®åçãæ稿ãã¹ããéææ¥ã®å¤æ¹ããåçæ®ã大ä¼ã«ãªã£ãã
ä»çµã¿ãããã¨ãããã§é¢ç½ããã¨éã¹ããã¨ãããã®ã¯ããã種æè½ã ã¨æãã¾ããã
å¶æ¥é¨ãé¢ç½ããã¼ã åçãæ®ã£ãã®ãç®åãã«ãã©ã®é¨ç½²ãé¢ç½ããã¼ãºã¨ãã§åçãã¨ã£ã¦ããã
éçºããè´ã£ãã®ã¯ãããªã½ã¼ã¹
while (Love is true) { echo "Happy!"; }
å½æ¥
社é·ãå½¹å¡ããããæ«é²å®´ããåå ãã¦ããã®ã§ã家ã§èµ·ããããããããèªåã®æºå¸¯ã«ãã§ãã¯ç¨ã®ã¡ã¼ã«ãå±ãã¦ãã¾ããã
ãããè¦ããã¨ã§ãã»ã¼ãªã¢ã«ã¿ã¤ã ã§æ«é²å®´ã®å
容ãè¦ããã®ã¯æãã¬å½¹å¾ã ã£ããããããªãã
ç§ã¯ãäºæ¬¡ä¼ããåå ã
ãã§ã«æ¥ã¦ãã人ã«ã«ã¼ãã渡ãã¤ã¤ãèªåã®æºå¸¯ã§ãµã³ãã«ã®ãã©ãã ã¼ãã¼ãè¦ãã¦æ稿ã®ãé¡ãããããã¨ã¯ãå
¥å£ã§æ¥ã人ã«èª¬æã¨ãé¡ãããããããã
ä¼ã®æä¸ã«ãããããæºå¸¯ã§æ®ã£ã¦éã£ãããèªåã®æºå¸¯ã®ã«ã¡ã©æ§è½ãæã£ããããè¯ããªããã¨ã«æ°ã¥ããã»ã»ã»ã·ã£ãã¿ã¼ã¹ãã¼ãããã³ããåãããããããé
ãããã
ä»æ¥
ä»æ¥ãæ°å©¦ããè¦ãææ³ãããã¾ããã
ã¨ã¦ãåãã§ãããã¿ããã§ããã£ãã
æå¾ã«
çµµããªãã¨ãã¾ãä¼ãããªãããããã¾ããããã¨ã¦ãå®æ度ãé«ãããã®ã¾ã¾ãµã¼ãã¹ã«ããããããã®ãã®ãåºæ¥ã¾ããã
ãªã«ããåãã§ãããã¦ããã£ãã
ããã¨ããã®ä½æ¥ããã¦ããã®èªä½ãã¨ã¦ã楽ããã£ãã
é¨ç½²ãè¶
ããä¸ä½æã¨ãä½æ¥ãé²ãã§ããæãã¨ãåãæ¹åãåãã¦ããããããã¦ãããã¨ããæèã®å
±æãªã©ã
æ®æ®µã®ä»äºã¨ã¯ã¾ã£ããéã£ã空æ°æã§ä½æ¥ãã§ããã®ã¯ãªããªã®ããçµãã£ãå¾ã«é£²ã¿ãªãã話ããããã©ãä½ãåå ãã¯ããããããªãã£ãã§ãã
ã§ãããã®ã¹ãã¤ã¹ãè¦ã¤ãã¦ãæ®æ®µã®ä»äºã«ãç¹ãè¾¼ãã¦ãããããããªãã¨æãã¾ããã
ä¿®æ£
ã¿ã¤ãã«ããéã£ãããããè´ã£ããã«å¤ããã
誤åè±åãã¡ã¾ã¡ã¾ä¿®æ£â¦