Title : PHPã®ãã¥ã¼ãã³ã°ãã¿ å訳çãªã¡ã¢ Posted on : 2006-11-25 Author : NKJG Category : Webã¡ã¢ Permalink : PHPã®ãã¥ã¼ãã³ã°ãã¿ å訳çãªã¡ã¢ Hatena Star : æ¬æ 12ã®PHPæé©åãã¯ããã¯:phpspotéçºæ¥èªãåç §ã«ãã¦ããã12 PHP optimization tips - Alex Moskalyuk Blogãããªã³ã¯ããã¦ãããIlia Alshanetsky (Ilia Alshanetsky - Talks)æ°ã®PHP & PerformanceãPHPã®ãã¥ã¼ãã³ã°ã®é¨åã®ã¿èªãã ãã¤ãããè±èªãã¡ãªãã§ã 以ä¸PHPã®ãã¥ã¼ãã³ã°ã«é¢ããé¨åã®ã¿ã®ã¾ã¨ãçãªãã®ãç§çãªã¡ã¢ã誤訳ã®å¯è½æ§ãèããã¨ä¿¡é ¼ã¯ããªãã»ããããããç§ä»¥å¤ã®äººã¯åæãèªãã¹
Mantisã¯PHPã§å®è£ ãããã°(åé¡)管çã·ã¹ãã ã§ãã主ãªç¹å¾´ã¯ä»¥ä¸ã®éãã§ãã
JPG to ASCII Converter - Snippet PHPã§JPEGç»åãã¢ã¹ãã¼ã¢ã¼ãã«å¤æãããµã³ãã«ããã°ã©ã ãå ¬éããã¦ãã¾ãã ãµã¼ãã¹ã«ä½¿ãã®ãããã§ããã使ãæ¹æ¬¡ç¬¬ã§é¢ç½ããã¨ãã§ãããã§ãã é¢é£ã¨ã³ã㪠PHPã§ç»åãæ±ããµã³ãã«ã³ã¼ãè²ã PHPã§ã¿ã°ã¯ã©ã¦ãå®è£ ãµã³ãã« PHPã§FTPãã¡ã¤ã«éä¿¡ãããµã³ãã«ã³ã¼ã
ã¯ã©ã¤ã¢ã³ãããã®ãªã¯ã¨ã¹ãã«å¯¾ãã¦ããã«å¿çããæºãã¦ãããä½ããã®ã¿ã¤ãã³ã°ãè¦è¨ãã£ã¦å¿çããæè¡ã Comet - Wikipedia ä¾ãã°ãã£ãããªããã§ä½¿ãã¨ãç¸æãçºè¨ããã¿ã¤ãã³ã°ã§ã¬ã¹ãã³ã¹ãè¿ã£ã¦ããã®ã§ããªã¢ã«ã¿ã¤ã ã«ä¼è©±ãåºæ¥ãããã訳ã§ãã â»ããã¾ã§ãå®è£ ã®ä¸ä¾ãªã®ã§ããã®ã¾ã¾ã§ã¯å©ç¨ã·ã¼ã³ãããªãéå®ãããäºããçæä¸ããã 注æäºé 以ä¸ã®å®è£ æ¹æ³ã¯ãç¥èçãªã³ã¹ãããã¾ãå¿ è¦ãªãæ¿ããã«ããµã¼ãã¼çãªã³ã¹ããå¤ãæ¶è²»ãã¾ãã å ±æã¬ã³ã¿ã«ãµã¼ãã¼ãªããã§ä½¿ãã¨ãã¢ã«ã¦ã³ãå¶éã»åæ¢ãªã©ã®å¦ç½®ãã¨ãããå ´åãããã®ã§ãå ±æã§ä½¿ãã¹ãã¼ã¹ãªã©ã§ã®ä½¿ç¨ã¯é¿ããå°ç¨ãµã¼ãã¼ãèªåã®ãµã¼ãã¼ãªã©ã§ä½¿ç¨ãã¦ä¸ããã Cometåä½ã®æµã 大ã¾ããªæµãã¯ãããªæãã§ãã Ajax(XMLHttpRequest)ãå©ç¨ãã¦ãµã¼ãã¼(PHP)ã«ãªã¯ã¨ã¹ããéã ãªã¯ã¨ã¹ã
Subversionã¯ã使ãã ããããéçºä½æ¥ã«ã¯æ¬ ãããªããã¼ã«ã§ããã¨ããã®ã¯è¨ãã¾ã§ããªããããã¼ã¸ã§ã³ç®¡çã¨ããé¢ã§è¦ãã¨ä½ãéçºã«éã£ã話ã§ã¯ãªããæ®æ®µã®æ¥åå ã§ä½¿ããã¡ã¤ã«ã ã£ã¦ãã¼ã¸ã§ã³ç®¡çã§ããã¨ä¾¿å©ã ã ããã·ã¥ãã¼ã ã¨ã¯è¨ãããããªãã¨ãããã¨ãªãã¸ããªã®ç®¡çãç ©éã«ãªã£ã¦ãã¾ããã¦ã¼ã¶ç®¡çã大å¤ã ãããã§ãããªãã¼ã«ã使ã£ã¦ã¿ã¦ã¯ãããã ããã ä»åç´¹ä»ãããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã¯SVN Access ManagerãSubversionã®ã¢ã¯ã»ã¹ç®¡çããã¼ã¸ã£ã ã SVN Access Managerã¯PHP+MySQLã§ä½ãããWebãã¼ã¹ã®Subversion管çã¤ã³ã¿ãã§ã¼ã¹ã ãã¦ã¼ã¶ãã°ã«ã¼ããä½æããããã¸ã§ã¯ãã¨ãªãã¸ããªã¨ãçµã¿åããã¦ã¢ã¯ã»ã¹æ¨©éã管çã§ããã ãã° ãªãã¸ããªã®ã¢ã¯ã»ã¹æ¨©éã管çããè¨å®ãã¡ã¤ã«ãåºåãããã¨ãã§ãããããã¡
ãã©ã¦ã¶ãã¼ã¹ã§Subversionããã©ã¦ã¸ã³ã°ã§ããã½ããã¦ã§ã¢ã¯å種åå¨ããããã©ã¦ã¶ã ãã§ãªãã¸ããªã®å 容ãè¦ãããã®ã¯ç¢ºãã«ä¾¿å©ã ãã ããªãã¸ããªã®ä½æã権éã®è¨å®ã¯ã¿ã¼ããã«ãã¼ã¹ã«ãªã£ã¦ãã¾ãã ãªãã¸ããªæ¦è¦ ãã®ã½ããã¦ã§ã¢ã¯ã²ã¨å³éãããã©ã¦ã¸ã³ã°ã§ã¯ãªããªãã¸ããªã管çããããã®ã½ããã¦ã§ã¢ã ã ä»åç´¹ä»ãããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã¯USVNãSubversion管çã½ããã¦ã§ã¢ã ã USVNã¯ãã©ã¦ã¶ãã¼ã¹ã§åä½ããã½ããã¦ã§ã¢ã§ãmod_dav_svnãå¿ é ã«ãªããPHP+MySQLã§åä½ãããã©ã¦ã¶ä¸ã§ãªãã¸ããªã®ä½æãã¦ã¼ã¶ã®ä½æãã°ã«ã¼ãã®ç®¡çãè¡ããããã«ãªã£ã¦ããã ã¢ã¯ã»ã¹æ¨©éè¨å® ããã¸ã§ã¯ã管çã¨ã¯ç°ãªãããªãã¸ããªã®ç®¡çã«ç¹åãã¦ããããã¡ã¤ã«ã«å¯¾ãã¦ã®ã¢ã¯ã»ã¹æ¨©éãè¨å®ãããã¨ãå¯è½ã ããªãã¸ããªãä½æãããããã§ãã¯ã¢ã¦ãURLã使ãã¯ã©
IEã§ééPNGç»åã®ééå¦çãç°¡åã«è¡ãJavaScriptã©ã¤ãã©ãªãalphafilter.js... 次ã®è¨äº â«ï¼JavaScriptã§3Dãªãã¸ã§ã¯ããä½æããããã®ã©ã¤ãã©ãªãJS3Dã Supercharged Javascript Pre-compression also doesn't solve a multiple connection issue. è¤æ°ã®JavaScriptãã¡ã¤ã«ãï¼ã³ãã¯ã·ã§ã³ã§ã¹ãããªä¸æ¬èªã¿è¾¼ã¿ããæ¹æ³ã HTMLã§ã®èªã¿è¾¼ã¿ã¿ã°ã次ã®ããã«ã¹ãããªã§ãã¾ãã <!-- Namespace source file --> <script src = "yahoo.js" ></script> <!-- Dependency source files --> <script src = "dom.js" ></script> <script
ããã¾ã§å¤æ°ã®CMSãè¦ã¦ããããããã¾ã§å®æ度ãé«ãã¨è¨ãããã®ã«åºä¼ã£ããã¨ã¯ãªãã£ãâ¦ããè¨ãããããåãããã®ã©ãã©ãæã¯DekiWikiã«è§¦ããæã«æãããã®ã«è¿ãã è¦ãã¾ã¾ç·¨éã§ããCMS CMSã¨è¨ãã°ãã¦ã¼ã¶ç»é¢ã¨ç®¡çç»é¢ã«åããã¦ãã¦ã管çç»é¢ã¯ã¢ã¸ã¥ã¼ã«ããã¼ãã®è¨å®ãåé ç®ã®ä¸¦ã³ãæå®ããã®ãé常ã ãå®éã®åºåçµæã¯ã·ã¹ãã ä»»ãã§ããã®ç¹ãæè»æ§ã«æ¬ ããç¹ã§ããã£ãã ãããããã¯éããè¦ãã¾ã¾ç·¨éã§ããããã«é«ãæè»æ§ãç¶æãã¦ããã ä»åç´¹ä»ãããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã¯concrete5ããã¶ã¤ã³ã管çãã³ã³ãã³ãä½æå ¨ã¦ãé«åº¦ãªCMSã ã ç¸å½å人çãªææ ãå ¥ã£ã¦ãã¾ã£ã¦ããã®ã¯ãåããããªã·ã¹ãã ãæ§ç¯ããäºå®ããã£ãããã ãã ãconcrete5ã¯å®æ度ãé«ããå¤å°ã®æ¹é ããæ½ãã°ååãªæ°ãããããã¯ãä¸æã«éçºã³ã¹ãããããããããªã¼ãã³ã½ã¼ã¹ã§æ¢
ãã²ã¦ããã£ãããè¸è½äººãè¦ã¦ããã¨ããã¨ããã²ã¦ãããããã¨è«¦ããªãã¦ã¯ãªããªããããããªããã ãªããã¨å®æãã¾ãããã ä»åã¯ãããªãã²ã¦ããã£ãããè¸è½äººãã¾ã¨ãã¦ã¿ã¾ããã ã¾ãã¯ä»å¤§äººæ°ã®è¸äººããã§ãããã¬ã³ãã£ã¨ã³ã¸ã§ã«ã®ãäºäººã§ãã ãæè¤ããã ããã®æè¤ããã¨ãç¸æ¹ã®é è¤ããã§ãã ãäºäººã¨ããã²ã§ãããã¨ããã¿ã«ãã¦ãç¬ãããã£ããã£ã¦ãã¾ãã Hããããã¬ã³ãã£ã¨ã³ã¸ã§ã«ã¨ãããã²ã§ç¬ããã¨ã£ã¦ã人ã ãããã§ãããããªã«å¥½æ度ã¨ãèãããã¨ãªããªãã Tãããç§ã¯ãã¬ã³ãã£ã¨ã³ã¸ã§ã«ã£ã¦ããã¾ãç¥ããªããå¿æããã¨ããè¸äººããã®å ´åã¯ãã²ã®å°è±¡ããé¢ç½ããã©ããã ããã ââï¼ãã¬ã³ãã£ã¨ã³ã¸ã§ã«ã®2人ã®åçã並ã¹ã¦ï¼ã©ã£ã¡ã®ãã²ã«å¥½æãæã¦ã¾ããï¼ Tããããã£ã¡ã®ï¼æè¤å¸ï¼ãã²ã®ã»ããããã Rãããããããã¼ã³ã¼ãã¿ãããªé«ªã¯åãä»ããªãã å¼ç¨å ï¼è²æ¯ç 究室 ã
Openpear is a PEAR Repository Channel and Subversion Hosting Service. since November 2008 以åããã使ãã§ããï¼ ä»¥åã® Openpear ãã使ãã ã£ãæ¹ã¯ã以ä¸ã®ã³ãã³ããå®è¡ããå¿ è¦ãããã¾ã pear channel-update openpear.org ãã£ã³ãã«ãç»é²ãã pear channel-discover openpear.org å©ç¨å¯è½ãªããã±ã¼ã¸ããªã¹ããã pear remote-list -c openpear ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãã pear install openpear/package_name ãã¼ã¸ã§ã³ãå®å®æ§ãæå®ãã¦ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãã pear install openpear/package_name-1.0.0 pear insta
PEAR :: Package :: Net_DNSBL Checks if a given Host or URL is listed on an DNS-based Blackhole List (DNSBL, Real-time Blackhole List or RBL) or Spam URI Realtime Blocklist (SURBL) ã¹ãã é²æ¢ã«ä½¿ããPEARããã±ã¼ã¸ãPEAR::Net_DNSBLã 次ã®ããã«å©ç¨ãããã¨ãåºæ¥ãã¿ããã <?php require_once 'Net/DNSBL/SURBL.php'; $surbl = new Net_DNSBL_SURBL(); if ($surbl->isListed($url)) { echo "SPAM!!!"; } ?> ãã©ã¤ããã¢ãã¹ãã æ¸ãè¾¼ã¿ã®éä¿¡å ãªã¹ããã¹ãã ã¡ããã·ãã¼DNSBLããå ¬
WordPress ãé«éåãã5ã¤ã®æ¹æ³ã§ãã ãã¼ãã®å¹çå PHP ã®é«éå ãã¼ã¸ãã£ãã·ã¥ãã©ã°ã¤ã³ã®ä½¿ç¨ MySQL ã¯ã¨ãªãã£ãã·ã¥ MySQL ãã¼ãã«æé©å ãã¼ãã®å¹çå ãã¼ãã®å¹çåã¨ãããããåºåãã HTML ã CSS, JavaScript ã®æé©åã§ããããã«å½¹ç«ã¤ FireFox ã®ãã©ã°ã¤ã³ã YSlow ã§ããããã¯ã¨ã³ãï¼ãµã¼ããªã©ï¼ã®æé©åãããããã³ãã¨ã³ãï¼HTML, CSS, JavaScriptï¼ã®æé©åã®æ¹ãå¹ççã«åä¸ãããããã®ã§ãçã£å ã«åãçµãã§ã¿ãã¹ãã 使ãæ¹ãªã©ã¯ä¸è¨ã®ãã¼ã¸ã詳ããã§ãã ããã¦ãã¼ãYSlowã§Webãã¼ã¸ãé«éå â ãªãããã¨éããåæã«å®ç¾ããUIã! (1) YSlowã§Webãã¼ã¸ããã©ã¼ãã³ã¹è¨æ¸¬ | ã¨ã³ã¿ã¼ãã©ã¤ãº | ãã¤ã³ãã¸ã£ã¼ãã« PHP ã®é«éå PHP ã¢ã¯ã»ã©ã¬ã¼ã¿ã¨ãã
Webä¸ã«ãããã¡ã¤ã«ãç´æ¥ç·¨éã§ããããåæ ãå³æè¡ããã¦ä¾¿å©ã«ãªããã¨ã ããããã¡ããã»ãã¥ãªãã£ãªã¹ã¯ãããã®ã§ãIPã¢ãã¬ã¹å¶éããããã¹ã¯ã¼ããããããã¨è¨ã£ã対çã¯å¿ è¦ã ãã ããã¡ã¤ã«ã®ã¢ãããã¼ãã«FTPã使ã£ã¦ãã¼ããä½åã«ç©ºããããã¯è¯ãããç¥ããªãã Webãã¼ã¹ã®ãã¡ã¤ã«ç®¡çã½ããã¦ã§ã¢ PHPã§ä½ããããã¡ãã¯ä½¿ãæ¹ã«ãã£ã¦ã¯ä¾¿å©ã«ãªãã½ããã¦ã§ã¢ã ã ä»åç´¹ä»ãããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã¯eXtplorerãWebãã¼ã¹ã®ãã¡ã¤ã«ããã¼ã¸ã£ã ã eXtplorerã¯PHPã§ä½ããã¦ãããGUIã¢ããªã±ã¼ã·ã§ã³ã®ãããªã¤ã³ã¿ãã§ã¼ã¹ãç¹å¾´çãªã½ããã¦ã§ã¢ã ãå·¦å´ã«ãã©ã«ãã®ä¸è¦§ãå³å´ã«ãã¡ã¤ã«ã®ä¸è¦§ã表示ãããããã¡ã¤ã«ã¯ãã®å ´ã§ç·¨éãããã¨ãã§ãããã¼ããã·ã§ã³ãè¨å®ãããã¨ãã§ããã ãã¡ã¤ã«ç·¨éä¸ Webä¸ããPHPã使ã£ã¦æä½ããã¢ã¼ãã¨ãFTPã使ã£ã¦
å人çã«ããã°ã¨Wikiã¯è£å®é¢ä¿ã«ããã¨èãã¦ãããåã 人ãæç³»åã«æ²¿ã£ã¦æ¸ãé£ãã¦ããã®ãããã°ã§ããããããã¾ã¨ãã¦ãã¬ãã¸åãããã®ãWikiã«ãªããæéã¨ã¨ãã«æ å ±ãé³è åããããã°ã«æ¯ã¹ã¦å³å¹æ§ã¯ãªããããã¬ãã¸ã¨ãã¦ã¯Wikiã®æ¹ãæå³ãã§ã¦ããã ãã¼ã¿ãã¼ã¹ãããã®Wikiã¨ã³ã¸ã³ ããèããã¨äºã¤ãåæã«æä¾ãããã®ã½ããã¦ã§ã¢ã¯æå³ã大ããããç¥ããªãã ä»åç´¹ä»ãããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã¯Wikepageãããã°ã¢ã¼ããåããWikiã¨ã³ã¸ã³ã ã Wikepageã¯åºæ¬çã«ã¯Wikiã¨ã³ã¸ã³ã ãã³ã³ãã³ãé¨åã¨ã¡ãã¥ã¼é¨åãåæã«ç·¨éã§ããã¨ããå¤åçãªå½¢ãã¨ã£ã¦ãããé常ã¯èª°ã§ãç·¨éã§ãããããã¹ã¯ã¼ããç¥ã£ã¦ãã人ã®ã¿ç·¨éã§ããããã«ããã¢ã¼ããããã ç·¨éç»é¢ ãã¼ã¿ãã¼ã¹ã¯å©ç¨ãã¦ããããããã¹ããã¡ã¤ã«ã ãã§åä½ãã¦ããããã®ããPHPããåãã¬ã³ã¿
ããã«ã¡ã¯ãç§éã§ãã å æ¥ãå¹´æãã«éããã好ããªã¢ã¼ãã£ã¹ãã®ã©ã¤ãã®ãã±ãããè²·ãã¾ããã åã®ã©ã¤ãã¤ãã³ãã¯ãã±ããã売ãåãã¦æ®å¿µã§ããããä»åã¯å¤§ä¸å¤«ã§ããã ããã«ãä»åº¦ã¯ãã®ãããããå¸ï¼åããï¼åç®ï¼ï¼ã«ãªã£ãã®ã§ãä»ããã¨ã¦ã楽ãã¿ã§ãã ãã¦ãä»æ¥ã¯ä¹ ã ã«PHPé¢ä¿ã®ãã¿ã§ãã åãPHPã§jpegç»åãåºåãã¦è¡¨ç¤ºããããã°ã©ã ãä½ããã¨ãããã¾ããã ãã®æãIEã§ã¢ã¯ã»ã¹ãã¦ã表示ãããjpegç»åãä¿åãããã¨ããã¨ãä½æ ãbmpã¨å¤æãããã¨ããåé¡ãããã次ã®ã¯åç¾ç»åã§ãã ããã°ã©ã èªä½ã¯ãã°ã¤ã³ãã§ãã¯å¾ã«èªã¿è¾¼ãã ç»åãåºåãããããªã·ã³ãã«ãªãã®ã§ãFirefoxã§ã¯ã¡ããã¨jpegã¨å¤æããã¾ãã IEããjpegç»åãã¡ã¤ã«ã«ç´æ¥ã¢ã¯ã»ã¹ãã¦è¡¨ç¤ºããå ´åã大ä¸å¤«ã§ãã æåãheaderé¢æ°ã§Content-Typeã ãåºãã¦Content
PHP-OpenIDã使ã£ã¦ã¿ãã ä»åã¯ããIdentity Providerï¼ä»¥ä¸ãIdPï¼ãã®æä¾ããã¢ã«ã¦ã³ããå©ç¨ãããã°ã¤ã³ä½æ¥ãè¡ããConsumerãã®ä½æãè¡ããªãããOpenIDã®è§£èª¬ãé²ãã¦ããã¾ãã ä»åConsumerã®ä½æã«ä½¿ç¨ããè¨èªã¨ãã¦PHPãé¸ã³ã¾ãããå®ã¯OpenIDã®ConsumerãIdPãæ§ç¯ããããã®ã©ã¤ãã©ãªã¨ãã¦ããã¾ãã¾ãªè¨èªåãã®ãã®ãå ¬éããã¦ããã1ããæ§ç¯ããå¿ è¦ã¯ããã¾ããã OpenIDã®å ¬å¼ãµã¤ãã§ãããopdnid.netãã«ããã®ä¸è¦§ ï¼http://wiki.openid.net/Librariesï¼ãå ¬éããã¦ã¾ããè¤æ°ããPHPåãã®ã©ã¤ãã©ãªããããã£ã¨ãä¸è¬çãªãPHP OpenID Libraryï¼JanRain PHP OpenIDï¼ããå©ç¨ãã¦ã¿ããã¨ã«ãã¾ãã é å¸å ï¼http://www.openid
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}