PHP
Pinocoã ã£ã¦å®ã¯ããããã ããPimpleã«ãªãã¦è² ããªããããã¨ããããã§ãPHPã¡ã³ã¿ã¼ãº -> Pimpleã§ã·ã³ãã«ã«æ£ããDIãç解ãããPinocoã§ç解ãã¦ã¿ããã¨ãããã¿ãããã¾ããå ã«ãããè¦ã¦ããã¦ãã ããããããPinocoã£ã¦ãªããããããã£ã¡ããâ¦
Macã§Homebrewã使ã£ã¦PHPã®éçºç°å¢ãä½ãã¾ã¨ãã§ããHomebrewã¯MacPortsããå§åçã«ã³ã³ãã¯ããªã®ãã¡ãªããã§ããMacPortsã§PHPãã¤ã³ã¹ãã¼ã«ããã¨ã/opt/localã«ãApacheãå«ãããããéã®ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããã¾ããPHPã®ãã«ãã«Apacheâ¦
ãç¡æ²æ±°ãã¦ããã¾ãããã®ã£ãä¹ ãã¶ãã«æ¸ãã¾ããèè æ§ããç®æ¬é ãã¦ãé人åºçä¼çºè¡ã®ãã¯ããã¦ã®ãã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦ã®FuelPHPãèªã¿ã¾ãããEPUBããã¦ã³ãã¼ããããã¤ã§ããhttp://tatsu-zine.com/books/fuelphp1stãã ã®FuelPHPã®ãã¯ããã¯â¦
ã¿ã¤ãã«ãã®ã¾ãã¾ã§ããPHPã®arrayã¯é åºä»ãè¾æ¸ãªãã ãã©ããªã¹ãã«è¦ãã¡ããã®ã§ã¤ãã¤ããã£ã¦ãã¾ãã®ã $a[count($a)-1] ããããã®ãåè¯ãªããã°ã©ãã»ã©ãã®ç½ ã«ããããããããããã¨ãã¯unsetãããªãã¦array_spliceã使ãããã
ã¯ãã¿ã¤ãã«ã¯é£ãã§ããOOPã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯ãã ã®å®è£ æ¼ããã§ãã¯æ©è½ãããªãããã¾ãã¦ãç¶æ¿ã¯å·®åããã°ã©ãã³ã°ãã¼ã«ãããªãããã¨ããã®ã¯ããã¨ä¸è¬çãªè©±ã ãã©ãRuby(respond_to?ã§ãã³ãã«ããã®)ã¨Java(ã¤ã³ã¿ã¼ãã§ã¼ã¹ãèªç¶ããã¦ã¦â¦
CSSãã¬ã¼ã ã¯ã¼ã¯ã®ãããªãWebã¢ããªã®ããã³ãç¨ãã¼ã«ãããã®ãããªãTwitterã®Bootstrapãããæãã§ãããã©ã¼ã ã®margin/paddingã®å ·åãããªã»ããã®è¡¨ç¾ãã»ãã¨ã¹ãã¼ãã§ããããããªãã®ã«ãããä¸å¯§ãhttp://twitter.github.com/bootstrap/ãâ¦
ãããã¯ããã¶ãè¦ããªãããããªãã®ãã§ããã¯ãããããã¨ããã®ã§ã¯ä½ã®è©±ãããããªãã®ã§ã以ä¸ã«è©³ããæ¸ãã¦ããã¾ããPHPã®ããã¥ã¢ã«ã§ header() é¢æ°ã調ã¹ãã¨ãããªãã¨ãæ¸ãã¦ããã¾ããã ç¹æ®ãª header ã³ã¼ã«ã 2 種é¡ããã¾ããæåã®ãâ¦
ã¢ããªã±ã¼ã·ã§ã³ãã³ã¬ãªã¢ã³ãç¨ãã¦å¾³ä¸¸æ¬ã®ãæ§ã ãªåã§ã®ã½ã¼ããã®ãµã³ãã«ãæ¹åãã¦ã¿ãã http://tech.ecnavi.co.jp/archives/4606152.htmlã¨ããè¨äºã«è§¦çºããã¦ãããã«ãè¨èªã¨ãã¦ã®è¡¨ç¾åãã©ããããè²¢ç®ã§ãããèãã¦ã¿ããã¨æãã¾ãããâ¦
ä½ãè¨ãã¾ãããããè¦ã¦é©ãããããã§ãããPHP5.4.0 Aplpha3 ã§å®éã«å®è¡ã§ããããã°ã©ã ã§ãããã大è奮ã§ãããPythonã ã¨ãã£ã¨ããããæ¸ããããã¨ããRubyã¯mixinæåãããããã¨ãããã®å¤æ°ã¹ã³ã¼ãJSã ã¨å½ããåãããã¨ããããããããâ¦
PHP5.4ã«ã¯ãã¬ã¤ãã¨ããææ³ãå°å ¥ããã¦ãå¤éç¶æ¿ã®ä¾¿å©ãã享åã§ããããã«ãªãããã§ãã ãããã試ãã¦ã¿ããã¨ã«ãã¾ããããã¬ã¤ãã¨ããã°ä»£è¡¨é¸æã¯Scalaã§ãããScalaã§ãããã¬ã¤ãã¯ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã®å®ç¾©ã¨ã¡ã½ããã®å®è£ ãåæã«ãã£ã¦â¦
ã¤ããã®å0.4ãåºããã¨ããã§ãããã¾ãæ©è½çã«ã²ã¨ç®ãããæããªã®ã§ã0.5ã¨ãã¦Pinocoãã¤ãã¼ãã¼ã¸ã§ã³ã®æ¡ãä¸ãã¾ããã Downloads · tanakahisateru/pinoco · GitHubãã¡ããå¤æ´ç¹ã®ä¸è¦§ã§ãã Changelog · tanakahisateru/pinoco Wiki · GitHubâ¦
XHTMLã¨å®å ¨ã«æ§æäºæãªPHPTALã§ãããå®ã¯ãã³ãã¬ã¼ãã®ä¸ã«PHPã¿ã°ãå ¥ãããã¨ãã§ãã¾ãã <h1 tal:content="title">my title</h1> helpers->Html->link( sprintf( __("List %s", true), __("Posts", true) ), array("action" => "index") );?> $ctx ã¯ã¬ã³ããªã³ã°æã«ãã³ãã¬ã¼ãâ¦
ã«ã¬ã³ããã£ã¬ã¯ããªãä¸çºã§Pinocoãµã¤ãåããã³ãã³ããã§ãã¾ããã localhostã®Apacheã®ããã¥ã¡ã³ãã«ã¼ã以ä¸ã«é©å½ãªãã©ã«ããæã£ã¦å®è¡ãã¦ã¿ã¾ãããã curl -L http://pinoco-0.5.2ã§åæå.ãã¾ã.jp | sh ã·ã§ã«ã¹ã¯ãªããã®ããã¹ãã®å 容â¦
Pinoco0.4.0ããªãªã¼ã¹ãã¾ããã Downloads · tanakahisateru/pinoco · GitHubå¤æ´ç¹ã¯ãã¡ãã§ç°¡åã«ã Changelog · tanakahisateru/pinoco Wiki · GitHubéè¦ãªç¹ã¯ããã¼ã¿ãã¼ã¹ããµãã¼ãããã¨ããããã¡ããåã«PDOç¨ã®ã©ã¤ãã©ãªããã¾ããã£ã¦ã ãâ¦
CodeIgniterã§ç°¡åã¡ã³ããã³ã¹ã¢ã¼ã http://d.hatena.ne.jp/localdisk/20110525/1306337920 ã£ã¦è¨äºããã£ãã®ã§ãPinocoã ã¨ã©ããªãããã£ã¦ã¿ã¾ãã app/hooks/_enter.php page = '/_maintenance.html'; // 追å $this->terminate(); //追å /* 以ä¸ã«â¦
PHPã«ã³ãã¡ã¬ã³ã¹é¢è¥¿ã«è¡ã£ã¦ãã¾ãããè¡ã£ã¦ãã¾ããã¨ããããã¤ãã§ã«ã¡ãã£ã¨åã£ã¦ãã¾ãããã§ããã®ãã¨ãªãããã¾ãããã¡ããã«ã½ã³ã«æ¥ã¦ãã¾ãã >> http://twitter.com/search?q=%23piece_networkã¨ããããèªåãLTã§åã£ããã¨Designer friâ¦
PHPã§ãµã¼ã-ãµã¼ãéã§REST-APIã使ãã¨ããfile_get_contentsã使ãã®ãç°¡åãªãã§ãããã¨ã©ã¼ã¬ã¹ãã³ã¹ã®å ´åããã®ç¶æ³ãã©ã解éãããããã®ãã¨ãã説æãã©ããããã¾ããªæ°ãããã®ã§ãã¡ãã£ã¨èª¿ã¹ã¦ã¿ã¾ãããã¬ã¹ãã³ã¹ã³ã¼ã200ã¨ã¨ã©ã¼ããâ¦
é©ãã®ãã³ããã¼ã¯ãã¹ãè¨æ¸¬çµæãå ±åãã¾ãããã¾ãã¾ãªPHPéçºãã©ãããã©ã¼ã ã§ããä½ããã¦ããªãæã«ããããªã¼ãã¼ãããããè¨æ¸¬ãããã¨æããå¯è½ãªéãä½è¨ãªå¦çãçãã Hello World ããã°ã©ã ã§ããã³ããã¼ã¯ãã¹ããè¡ãã¾ãããWebã¢ãâ¦
以åPHPã®ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã®å®è¡é度ãæ¯è¼ãã¾ããããhttp://d.hatena.ne.jp/tanakahisateru/20081024/1224850023ãã¾ããã¾ãè¨æ¸¬ã§ãã¦ããªãã£ãã®ã¨ãã½ã¼ã¹å ¬éãã¦ãªãã£ãã®ã¨ãããããã使ã£ããã·ã³ãå¤ããªã£ã¦ããæããã£ãã¨ãã3ã¤ã®â¦
æä½ã®ããã¤ãããã¯Webãµã¤ãåããã¬ã¼ã ã¯ã¼ã¯ããPinocoãå ¬éãã¾ããæ©ã¾ãããã°ãåããã®ã§ãä»ããè¨ãã¿ã¤ãã³ã°ã ãã¨ãããã¨ã§ãpinoco - web site environment using PHP and TAL - Google Project Hostingãã®ã¨ããããã°ã®æ´æ°ãæ ã£ã¦ãâ¦
ãã ã®ä¾å¤ããã¦ã¼ã¶ãè£è¶³ã§ããªããããã¨ãã£ã¦ãããããä¾å¤ã·ãã¥ã¨ã¼ã·ã§ã³ãèªåã§å®ç¾©ããã®ããããã¯ããã§ã¦ã¼ã¶ã®APIå¦ç¿è² æ ãé«ãã¦ãã¾ãããªã®ã§ãæ¨æºã®ä¾å¤ããã¨ãã°RuntimeExceptionãæããããã§ããPHP5.2(ã ã£ãã¨æã)ã¾ã§ã¯ãSPâ¦
PHPã®newã¯ããã§ç½®ãæãã - ãªããããã¼ã 第äºæ ã§æ¸ããã®ã¯ãã©ããPHP5.3ã§ã¯ãã¡ã£ã½ãã§ããPHP5.3ã§ã¯ãevalã®å®è¡ã³ã³ããã¹ãããé¢æ°å ã§ã¯ãªãã°ãã¼ãã«ã«ãªãï¼ã§ãå¤æ°ã¯ãã¼ã«ã«ã®ãã¬ãã·ã«ã«ã«æç¸ãã¦ãï¼ã¨ããããªãã¢ãããã¾ããâ¦
Rubyã«ããç¹ç°ã¯ã©ã¹ãç¹ç°ã¡ã½ããã®ä¾¿å©ãããPHPã§ãå®ç¾ãã¦ã¿ããã¨è©¦ã¿ã¾ãããRubyã®ç¹ç°ã¯ã©ã¹ã¯ããã§ã«ã¤ã³ã¹ã¿ã³ã¹åããããã¯ã©ã¹ä¸æãªãªãã¸ã§ã¯ãã«ããªã¼ãã¼ã©ã¤ãã§ã¡ã½ããã追å ãããã®ã§ããç¹ç°ã¯ã©ã¹ã¯ã¹ã¯ãªããè¨èªãªãã§ã¯ã®æ©â¦
Windowsã§ãæè¿ã®PHPã«PATHãéãã¨ãPidginãã¯ã©ãã·ã¥ãã¾ããã©ããããphp.exeã¨åããã©ã«ãã«ç½®ãããããã«ãªã£ããaspell-15.dllã競åãã¦ãã模æ§ã Pidginã¯ã¹ãã«ãã§ãã¯ã«Aspellã使ã£ã¦ãã¦ãããã¯Pidginã¨ã¯ç°ãªããã©ã«ãã«ã¤ã³ã¹ãã¼ã«â¦
http://windows.php.net/download/ã«ã¦ãè¨4種é¡ã®PHP5.3 Windowsãã¤ããªãé å¸ããã¦ãã¾ããã¨ãããããã§ã«5.2ã®æç¹ã§2種é¡ããã¾ãããããããã®ãã¡ãã©ããé¸ã¶ã¹ããã¨ããåºæºã«ã¤ãã¦ã軽ã調ã¹ããæ¨æ¸¬ãããããã¡ã¢ã§ãã VC6ãVC9 ããã¯ãâ¦
æ°ããPHPã¨ãGroovyã¨ã次ã®Javaã¨ããä¸é æ¼ç®åã®çç¥ã§Elvisæ¼ç®å(?:)ãªããã®ãããããã§ãã©ã®ãããããããã®ããèãã¾ãããã¨ã«ãã¹æ¼ç®åã¸ã®ãã¼ãºã£ã¦ãä¸é æ¼ç®å(cond ? a : b)ã¯ãã£ã±ãè©ä¾¡ãããã¹ããã®ã ãããã£ã¦ãã¨ãæå³ãã¦ãâ¦
PHPã® new ã¯ããªãã¸ã§ã¯ãçæå¾ãå¤æ°ã«æ ¼ç´ãã¦ããã§ãªãã¨ãã®ã¡ã½ãããå¼ã¹ã¾ãããããããµãããµãã myMethod(); //æ§æã¨ã©ã¼ $tmp = new MyClass(); $tmp->myMethod(); //ããããªãã¨ãããªã ?> ãã¨ãã©ãã§ç«¶åãããããããªã__autoloadâ¦
PHP5.3.6ã§ã¯ãã®åé¡ãçºçããªããªã£ã¦ãã¾ããããã®ãã® http://d.hatena.ne.jp/tanakahisateru/20090827/1251379409 ãåç¾ã§ããã³ã¼ããã®ã£ãã¨ãã¾ãã
PHP5.3.6ã§ã¯ãã®åé¡ãçºçããªããªã£ã¦ãã¾ãããPHP5.2.6ãªãã ãã©ãã¤ãã¬ã¼ã¿ã§ã¾ããããªãã¸ã§ã¯ããæ¸ããã®ã§ãã¾ããã¦ã¿ãã
æ£ç´é©ãããPHPãããããè¨è¨ãã¿ã¯ã½ãªã®ãããããæããããããã³ã³ã£ããè±èªèªããªããã«ãããã¥ã¢ã«ç¿»è¨³ãããªãPHP: é¢æ°ã®å¼æ° - Manualã«ããè¬ã®ä¸æ 注æ: PHP 5以éãããã©ã«ãã§å¤ã¯ãªãã¡ã¬ã³ã¹æ¸¡ãã¨ãªãã¾ãã ãã¡ããã¨ç解ããªãã¨â¦