ã¬ã¬ã·ã¼ãªãã©ã¯ãã£ã¹ãæ¨ã¦ã¦ã¢ãã³ãªã³ã¼ããã
å æ¥PHPã³ã¼ãã£ã³ã°ããéã®ã¨ãã£ã¿ãEclipsePDTããSublimeText2ã«ç§»è¡ãã¾ããã使ç¨æ´ã¯ç´1ã¶æç¨åº¦ã§ãããã²ã¨éãè¨å®å¨ããå©ç¨ãã¦ããããã±ã¼ã¸ãè½ã¡çãã¦ããã®ã§åå¿é²ã¨ãã¦æ®ãã¦ããã¾ããï¼ããã©ã«ãã§ãåå使ããé«æ§è½ãªã¨ãã£ã¿ã§ãããã¯ããï¼ ã¾ããããå©ç¨ããã·ã§ã¼ãã«ãããåããã¦ã¾ã¨ãã¦ããã¾ãã â»EclipsePDTã«é¢ããã¨ã³ããªã¼ã¯ãã¡ãâ ãPHPãPHPã®éçºç°å¢ï¼ä»®ï¼ã«é¢ããã¡ã¢ - f.retu.TechLog ï¼ããã±ã¼ã¸ã³ã³ããã¼ã«ã®å°å ¥ï¼Installation - Package Control ãã«ãã·ã¹ãã ã«PHPã追å ããSublimTextä¸ããPHPãå®è¡ã§ããããã«ãã¾ããï¼ãªãããã©ã§å ¥ã£ã¦ããªãã®ãããï¼ Sublime Text 2 >Tools > Build System > New Build Sys
PHPã§ã¦ãã¼ã¯ãª(ä¸æãª)IDãçæãããå ´åã«ãuniqidãã¨ããé¢æ°ãå©ç¨ã§ããï¼ string uniqid ([ string $prefix [, bool $more_entropy ]] ) ãã¤ã¯ãç§åä½ã®ç¾å¨æå»ã«ãã¨ã¥ãããæ¥é è¾ã¤ãã®ä¸æ㪠ID ãåå¾ãã¾ãã PHP: uniqid - Manual $prefixãªã $prefix(æ¥é è¾)ãªãã§å©ç¨ããã¨ï¼13æåã®æååãçæãããï¼ [ä¾] 48f7146e6ea07 <?php echo uniqid(); echo uniqid(""); ?> $prefixãã $prefixã«ä»»æã®æååãæå®ããã¨ï¼æ¥é è¾ã®å¾ã«13æåã®æååãçæããã [ä¾] UNIQ_48f718480b738 <?php echo uniqid("UNIQ_"); ?> $prefixã«ä¹±æ°ãæå®ãã ãã¤ã¯ãç§å
9æ15æ¥ã大ç°åºç£æ¥ãã©ã¶PiOã«ã¦ãPHPã«ã³ãã¡ã¬ã³ã¹2012ããéå¬ããã¾ããæ¬ç¨¿ã§ã¯ãæ¬ã¤ãã³ãã®åã»ãã·ã§ã³ã®æ¨¡æ§ãéææ´æ°å½¢å¼ã§ã¬ãã¼ããã¦ããã¾ãã ãªããæ¬å¹´ã¯3ãã©ãã¯æ§æã®ããããã¹ã¦ã®ã»ãã·ã§ã³ãã¬ãã¼ãã§ãã¦ããã¾ãããæ°ã«ãªãã»ãã·ã§ã³ã¯Ustreamä¸ç¶çãã覧ã«ãªã£ã¦ãã ããã ä»å¹´ã¯WordCamp Tokyo 2012ã¨å ±å¬ã§ã1éã®ãã¼ã«ãåãã¦ä½¿ç¨ãã¦ãã¾ãã WordCamp Tokyo 2012ã®ã¬ãã¼ãã¯ãã¡ããã覧ãã ããã ä»å¹´ã®ã¹ã¿ããTã·ã£ãã¯ããããªæãã§ãã ä¼æ©ã¹ãã¼ã¹ã¯è¶å±é¢¨ã§ãå風ãªé°å²æ°ã ä¼å ´ã«æ¥ãããªãæ¹ã®ããã«ããã¹ãã¨ãã©ã¼ãã§Ustreamã«ããä¸ç¶ãè¡ããã¦ãã¾ããåãã©ãã¯ã®ãã£ã³ãã«ã¯ä»¥ä¸ã®ã¨ããã§ãã ã¡ã¤ã³ãã©ã㯠ãã¼ã·ãã¯ãã©ã㯠ããã¯ãã©ã㯠廣å·é¡ãããåºèª¿è¬æ¼ã æ¨å¹´ã¨åæ§ãä»å¹´ãPHPã¦ã¼ã¶
ã¿ãªããããã«ã¡ã¯ã@ryuzeeã§ãã Composerã¯Rubyã§ããã¨ããã®Bundlerã®ãããªãã®ã§ãã¢ããªã±ã¼ã·ã§ã³ãå¿ è¦ã¨ããå¤é¨ã©ã¤ãã©ãªãããã®ã¢ããªã±ã¼ã·ã§ã³åºæã®ç¶æ ã§ä¸å çã«ç®¡çãã¦ããããã¼ã«ã§ãã PHPã§ã¯Pearã®ãããªã³ãã³ãã使ã£ã¦ã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ãããã¨ãä¸è¬çã§ãããã¢ããªã±ã¼ã·ã§ã³ã«ãã£ã¦å¿ è¦ã¨ãããã¼ã¸ã§ã³ãéããã¨ãã£ãã±ã¼ã¹ã§ã¯åé¡ãèµ·ããããããªãã¾ãã ä¾ãã°æåã§ã¤ã³ã¹ãã¼ã«ããã¦ããå ´åãå°æ¥çã«ã©ã¤ãã©ãªã®é å¸ãçµãã£ã¦ãã¾ã£ãããç¹å®ã®ãã¼ã¸ã§ã³ãé å¸ãããªããªãã¨å°ã£ã¦ãã¾ãã¾ãï¼ãããã£ã¦ãã¤ã³ã¹ãã¼ã«ãããã¼ã¸ã§ã³ã¯æ§æ管çã®å¯¾è±¡ã¨ããã¹ãã§ã常ã«ç°å¢ãåç¾å¯è½ã«ããªããã°ããã¾ããï¼ã Composerã使ããã¨ã§ããã®ãããªåé¡ããã¯ç°¡åã«è§£æ¾ããã¾ãã ãªããComposerã¯PHP5.3.2以éã§å©ç¨å¯è½ã§ã
ãããã æ代é ãã®æ å ±ãã¦ã§ãä¸ã«ããµãã¦ããããããªæ å ±ãè¦ãPHPåå¿è ã¯æ¸æã£ã¦ãã¾ãã ãããããã¦ãã¾ããææ³ãã¾ããã³ã¼ããåºã¾ã£ã¦ãã¾ãã ãããªã®ã¯ãããããããPHP: The Right Way ã¯æ°è»½ã«èªããã¯ã¤ãã¯ãªãã¡ã¬ã³ã¹ã ãPHPã®ä¸è¬çãªã³ã¼ãã£ã³ã°è¦ç´ã ã¦ã§ãä¸ã®ããã§ãããã¥ã¼ããªã¢ã«ã¸ã®ãªã³ã¯ãããã¦ç¾æç¹ã§ã®ãã¹ããã©ã¯ãã£ã¹ã ã¨å·çè ãèãã¦ãããã¨ãã¾ã¨ããã 大äºãªã®ã¯ã PHPã使ãããã®æ£å¼ãªãä½æ³ãªã©åå¨ããªã ã£ã¦ãã¨ã ãã®ãµã¤ãã®çãã¯ãã¯ãã㦠PHP ã使ããã¨ã«ãªã£ãéçºè ã«ãããããªãããã¯ãç´¹ä»ãããã¨ã çµé¨è±å¯ãªããã®äººã«ã¨ã£ã¦ããããã¾ã§æ·±ãèãããã¨ãªã使ã£ã¦ããå 容ã«ã¤ãã¦ãæ°é®®ãªè¦æ¹ãä¼ããããã ããã ãã®ãµã¤ãã¯ã決ãã¦ãã©ã®ãã¼ã«ã使ãã°ããã®ãããæãããã®ãããªãã ããã¤ãã®é¸æè¢ã示ãã¦ãããã
ã½ããã¦ã§ã¢ãã¹ãã®åå¼·ä¸&å®éã®æ¡ä»¶ã«æ´»ç¨ä¸ã ã¹ã¢ã¼ã¯ãã¹ãã¨ã¯ ã½ã¼ã¹ã³ã¼ãã«ä¿®æ£ãå ¥ããªã©ãã¦æ°ãããã«ããå¿ è¦ã«ãªã£ãéã«ã ãã®ãã«ããæ£å¸¸ã«çµäºãã¦ãããã¨ã確èªããããã®ãã¹ãã§ãã ç°¡åã«è¨ãã°ãããã«ãã«ãã£ã¦ã©ããåããªããªã£ãããã¦ãªãããï¼ãã確èªãããã¹ãã è¦ä»¶ãã¹ã(ç»é¢ãã¹ãã¨ã)ãå§ããåã®ããããããã¹ãåºæ¥ãç¶æ ã«ãããã©ããããã¹ããããã¹ãã ãã¹ãã®ããã®ãã¹ãããã¹ãã ã½ã¼ã¹ã³ã¼ãã®éçºã»è¿½å ã»ä¿®æ£ãçµããã½ããã¦ã§ã¢ãåä½ããç¶æ ã«ãããã確èªãããã¹ãã®ãã¨ãæ¬æ ¼çãªã½ããã¦ã§ã¢ãã¹ããå®æ½å¯è½ãã確èªããããã®äºåçãªç°¡æãã¹ãã§ããã æ å ±ã·ã¹ãã ç¨èªäºå ¸ï¼ã¹ã¢ã¼ã¯ãã¹ãï¼ããã¼ãã¦ãã¨ï¼ - ITmedia ã¨ã³ã¿ã¼ãã©ã¤ãº è¨èã®ç±æ¥ã¯ãã¼ãã¦ã§ã¢ã®ãã¹ãã«ãããããã æ°ããåºç¤ã«å¯¾ãã¦é»æºãå ¥ãã¦ãã¢ã¯ã¢ã¯ã¨ç ãåºããã¢ã¦ã
PHPã§é·æéãããéãå¦çãè¡ãã¨ãã ãã«ãã¹ã¬ããã§åãããããªãï¼ã¨æããã¨ãããããã¾ãã ãã«ãã¹ã¬ããå¦çãè¡ããã¨ã§ãæéã®ãããå¦çã è¤æ°åæã«ä¸¦åå®è¡ã§ããé«éåãããã¨ãã§ãã¾ãã (ç¹ã«éä¿¡å¦çãªã©ã§é 延ãããå ´åã«æå¹ã§ã) PHPã«ã¯pcntl_forkã¨ããããã»ã¹ããã©ã¼ã¯(è¤è£½)ãããã¨ã ã§ããé¢æ°ãããã¾ãããããã¯PHPãCGIã¢ã¼ã㧠åããã¦ããå ´åã«ã®ã¿æå¹ã§ãã é常ã¯PHPãApacheã¢ã¸ã¥ã¼ã«ã¨ãã¦åä½ããã¦ãããã¨ã å¤ãã®ã§ãããã使ããªãã±ã¼ã¹ãå¤ã ããã¾ãã ä»ã«ã¯ãsystemé¢æ°ãªã©ã§ã·ã¹ãã ã³ã¼ã«ãè¡ãã ãªã© & ã使ã£ã¦å®è¡ããã¨ããæ¹æ³ãããã¾ããã ãããphpãCGIçã¨ãã¦å®è¡ã§ããªããã°ããã¾ããã ã·ã¹ãã ã³ã¼ã«ã§å¼ã¶ããã°ã©ã ãPerlãªã©ã§ æ¸ãã°ããã®ã§ãããã§ããã°PHPã§å ¨é¨çµ±ä¸ããããã®ã§ãã
å½ããåãããã®ãããã¾ãä»æã§è¦ãããªãã®ã§ããã ç°¡åãªãã³ããã¼ã¯ã®åãæ¹ã¡ã¢ã å¦çã®éå§æã« $start_m = microtime(); $start = time(); å¦çã®çµäºæã« $end_m = microtime(); $end = time(); $bench = ($end - $start) + ($end_m - $start_m); var_dump($bench); ãªãã¹ãå¹çã®ããå¦çãæ¢ãããã¨ãã«ä½¿ãã¾ãã
ãªã©ã¨çç¥ãã¦æ¸ãã¾ãã echo 㨠print ã¯(ã»ã¼)åããã®ã§ããã echo ã®æ¹ãæåæ°ãå°ãªãã®ã§(ç¬)ãªã¹ã¹ã¡ã§ãã flushé¢æ°ã使ãã¨ãåºåãå³åº§ã«ãã©ã¦ã¶ã«è¡¨ç¤ºããããã¨ãã§ãã¾ãã é·ãå®è¡æéã®ãããå¦çã§ãéä¸çµéãé次表示ããããå ´åã¯ã flushãæ¯åå¼ã³åºãã¨è¯ãã§ãã (å®éã«ã¯ãflushã¨ob_flushã両æ¹å¼ã¶å¿ è¦ãããã¾ã) (ä¾) flushã使ã£ããµã³ãã«
å æ¥æ¸ãã以ä¸ã«é¢é£ãã¦ããããªã¦ã§ã¢ã©ãã«ç³»ã¬ã¸ã§ããã ã£ãã欲ãããªããã iPhoneã®ããã·ã¥éç¥ããã£ã¨æ´»ç¨åºæ¥ãã¨ãããããã¨æã£ãã®ã§ãiOSã¢ããªã«ããã·ã¥éç¥ãå®è£ ããæ¹æ³ã«ã¤ãã¦èª¿ã¹ã¦ã¿ãã¡ã¢ã å¿ è¦ãªãã®ä¸å¿ã§ãããããã·ã¥éç¥ã®å®è£ ã¨ç¢ºèªããããã«å¿ è¦ãªãã®ã以ä¸ãã»Macã»iOS端æ«ã»iOSãããããããã°ã©ã ã¸ã®ç»é²ã»Xcodeä½ã£ãã¢ããªãå®æ©ã転éããå¿ è¦ãããã®ã§ããããããããã°ã©ã ã¸ã®ç»é²ã¯å¿ è¦ã§ããã ããã·ã¥éç¥ã®å®è£ æé ããã·ã¥éç¥ã®å®è£ ã¯ããã£ã¨ä»¥ä¸ã®ãããªæé ã§å®è£ ãã¦ããã¾ããã»è¨¼ææ¸ã®ä½æã»ã¢ããªã¸ã®å®è£ ã»ãµã¼ãå´ã®å®è£ ä¸çªé¢åãããã¦åããã«ããã®ã証ææ¸ã®ä½æã§ãã¢ããªã¨ãµã¼ãå´ã®å¯¾å¿ã¯ãå®ã¯é常ã«ç°¡åã ã£ããããã 証ææ¸ã®ä½æã«ã¤ã㦠é¢åã§åããã«ãã証ææ¸ã®ä½æã ãã©ãæè¿ã¯è²ã ã¨è©³ç´°ãªè¨äºããã£ã¦æ¬å½ã«å©ããã¾ãã tak
Morning Relayã¨ããç®è¦ã¾ãã¢ããªã§ãiOS + PHPã§Push Notificationãå®è£ ãã¦ã¿ããå ¬å¼ããã¥ã¡ã³ããèªãã¨è¤éã§é£ãããã ãããã£ããããã°å¤§ä¸å¤«ããµã¼ãã¼å´ã®å®è£ ã¯å ¬å¼ããã¥ã¡ã³ãã«ã¯å®ä¾ãè¼ã£ã¦ããªãã®ã ãããapns-phpãã¨ããPHPã®ã©ã¤ãã©ãªã使ããã¨ã§ã©ã¯ã«ã§ããã ç°å¢ XCode 4.3 PHPï¼ãã¬ã¼ã ã¯ã¼ã¯ã«CakePHPã使ã£ã¦ããããç¹ã«CakePHPã«ä¾åãã¦ããåæã¯ãªãï¼ ãµã¼ãã¼å´ã®ã©ã¤ãã©ãªã«apns-phpã使ç¨ããã¼ã«ã«ã§ã®ä½æ¥ã«Macæ¨æºã®ããã¼ãã§ã¼ã³ã¢ã¯ã»ã¹ããä½¿ç¨ æ¦è¦ æºå App IDãä½æãã ãããã¸ã§ãã³ã°ãã¡ã¤ã«ã®ä½æã¨ãã¼ã«ã«ã¸ã®ã³ãã¼ ãã¼ã«ã«ã§CSR(証ææ¸ç½²åè¦æ±: Certificate Signing Request)ãã¡ã¤ã«ãä½æããããAppleã®ãµã¼ãã¼ã«ã¢ãããã¼ããã¦è¨¼
ããå¿ããã®ã§ã¡ã¢ãã¦åç §ã§ããããã«ãã¾ãã 1. PHPéçºç°å¢ä½æ(eclipse) 2.æ¥æ¬èªå(pleiades) 3.ãã¼ã«ã«ã§ç¢ºèªã§ããããã«ãã(MAMP) 1. 1-1. eclipseããã¦ã³ãã¼ã&ã¤ã³ã¹ãã¼ã« ãã¦ã³ãã¼ãããããã¡ã¤ã«ã¯ãfinderã§è¦ãã¨ã${username}/以ä¸ã«ããã¾ãã macã ã¨ãã¦ã³ãã¼ãããããã¡ã¤ã«ãã©ãã«ãã£ãã®ãçµæ§ãããã«ããã ã¢ããªã±ã¼ã·ã§ã³ã®ãã©ã«ãã¨åãé層ã«ããã¾ãã 1-2. gzãã¡ã¤ã«ã解å 1-3. 解åãã¦ã§ããeclipseãã©ã«ããã¢ããªã±ã¼ã·ã§ã³ãã©ã«ãã«ã³ãã¼ 2. 2-1. ãã¦ã³ãã¼ãããpleiadesãã¡ã¤ã«ã解å 2-2. 解åãã¦ã§ããpleiadesãã©ã«ã以ä¸ã®feature 㨠plugins ãã©ã«ãã®ä¸èº«ãã å ã»ã©ã¢ããªã±ã¼ã·ã§ã³ãã©ã«ãã«ç§»åããeclipseãã©ã«ã
åå:Jin å¹´é½¢:30代 å COBOL使ããPerlã¨JavaScriptã齧ãã¾ãããPHPã¯åå¿è ã§ããå½é¢ã®ç®æ¨ã¯ãWordPressãCMSã®ã¢ã¸ã¥ã¼ã«ãèªä½ãããã¨ï¼ ä»ã¾ã§ããã°ã©ã ãHTMLã"mi"ã¨ããããã¹ãã¨ãã£ã¿ã§ä½æãã¦ãã¾ããããããããçµ±åéçºç°å¢(IDE)ãªããã®ã使ã£ã¦ã¿ãããªãã¾ããã ä»åé¸ãã ã®ã¯ãªã¼ãã³ã½ã¼ã¹ã® "Eclipse" ã§ãã ããã§ã¯æ©éã¤ã³ã¹ãã¼ã«ã Eclipseã®ãµã¤ãã«ã¢ã¯ã»ã¹ PHPéçºè åãã® "Eclipse for PHP Developers" ããã¦ã³ãã¼ã ãã¦ã³ãã¼ããããã¡ã«ã解åãã¦åºæ¥ã "eclipse" ãã©ã«ããã¢ããªã±ã¼ã·ã§ã³ãã©ã«ãã«ã³ãã¼ã 以ä¸ã§ã¤ã³ã¹ãã¼ã«ã¯å®äºã Macã¯ç°¡åã§ãããªï¼â¦ã¨æã£ãã®ãæã®éãæ¥æ¬èªåã§äºæ³å¤ã«è¦æ¦ãã¦ãã¾ãã¾ããã ããããæ¥æ¬èªåã®æ¹æ³ã§ãã E
Mac OS X ã« PHP5.4 ãç°¡åã«å ¥ããæ¹æ³ã§ãã PHP5.4 使ã£ã¦ãã¾ããï¼ 5.4 ã§å®è£ ããããã«ãã¤ã³ãµã¼ãã traitsãshort array syntax ãªã©ã®æ°æ©è½ã試ãã¦ã¿ããï¼ã§ã 5.4 ãã¤ã³ã¹ãã¼ã«ããã®ãé¢åã ãªããã¨ããããªããæå ±ã§ãã ãPHP 5.3/5.4 for OS X 10.6/10.7 as binary packageãã¨ããããã±ã¼ã¸ã使ãã¨ãç°¡åã« PHP5.4 ãã¤ã³ã¹ãã¼ã«ã§ãã¾ãã PHP5.4ãã¤ã³ã¹ãã¼ã« æ¹æ³ã¯ç°¡åãä¸è¨ã®ã³ãã³ããå®è¡ããã ãã§ãã $ curl -s http://php-osx.liip.ch/install.sh | bash -s 5.4 å®è¡ããã¨ããã±ã¼ã¸ã®ãã¦ã³ãã¼ããå§ã¾ãã¾ãã®ã§ããã°ããå¾ ã¡ã¾ããã¤ã³ã¹ãã¼ã«å¦ç㧠sudo ã使ã£ã¦ããã®ã§ããã¹ã¯ã¼ããæ±ããããå ´åã
ã¡ãã£ã¨å¤§ãããªã¿ã¤ãã«ã§ãããããã¾ã§ç§å人ã®ç°å¢æ§ç¯æé ãã¾ã¨ãããã®ã§ããWindowsããMacã«ä¹ãæããã°ããã§ãã©ããã£ã¦PHPã®éçºç°å¢ãæ´ãããåãããªãPHPerã«åãã®ãéçºç°å¢ãæ´ããããã®ã¬ã¤ããã¨èãã¦ãã ããã æ¢ã«Macã§AMPç°å¢ãæ§ç¯ãããã¨ãããPHPerã«ã¨ã£ã¦ãæç¨ãªæ å ±ãå«ããã¤ããã§ãããã®ä¾ã¨ãã¦ã¯ãphp-buildã¨php-versionã§è¤æ°PHPãã¼ã¸ã§ã³ç°å¢ã®æ§ç¯ã®æé ãè¤æ°PHPãã¼ã¸ã§ã³ã¨Apacheã®é£æºæ¹æ³ãªã©ãããã¾ãã MacãUnixçã«ä½¿ããããã«ãããããCUIã§è¨å®ããæé ãå«ãã§ãã¾ãããæãããã«ãã£ã¦ã¿ã¦ãã ãããã¿ã¼ããã«ã¯ããªãã«åã¿ä»ããããã¾ãã :) CUIã«æ £ãã¦ãªãæ¹ã¯ããé£ãããã¨æããããããã¾ãããããã£ã¨ã®ã¡ã®ã¡ã®è²¡ç£ã«ãªãã¯ãã§ãï¼ 2012å¹´çã§ã¯ãPHPerãMacbookAir
é害
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}