PHP Community on Twitter ZEND DEVELOPER ZONEã§PHPã³ãã¥ããã£ã®Twitterã¢ã«ã¦ã³ããç´¹ä»ããã¦ãã¾ãã ãªã¹ãã«ä¸¦ãã§ããã®ã¯PHPæ¬å®¶ã®äººãæµ·å¤ã®äººã°ããã ã£ãã®ã§ãæ¥æ¬ã®ãããPHPerã®Twitterã¢ã«ã¦ã³ãã並ã¹ã¦ã¿ã¾ãããï¼()å ã¯ãã£ããã§ã;-)ï¼ Twitterãã¯ãããPHPerã¯è¦ãã§ãã¯ï¼ @LIND(baseball_flashãæ親ä¼ã®äºº) @akiyan(ã¯ã¦ã¶TVãCakePHPã®äºº) @bto(phshã®äºº) @cocoitiban(Ethnaã®äºº) @elf(ãããããªã®äºº) @halt(Ethnaãvimã®äºº) @hiro_y(moonyã®äºº) @hnw(round()ã®äºº) @ichii386(Ethnaã®äºº) @iogi(PHP Extensionåå¼·ä¼ã®äºº) @iteman(Piece Fram
APIãæä¾ããã¦ããªããµã¼ãã¹ãã欲ããæ å ±ã ããåå¾ããã«ã¯ãHTMLãªã©ããèªåã§ã¹ã¯ã¬ã¤ãã³ã°ãè¡ãããããã¾ãããPHPã§ã®ã¹ã¯ã¬ã¤ãã³ã°ã«å½¹ç«ã¤ã©ã¤ãã©ãªãªã©ãã¾ã¨ãã¦ã¿ã¾ããã PerlãRubyã«ã¯è²ã ã¨ä¾¿å©ãããªãã®ãè¦ã¤ããã®ã§ãããPHPã«ã¯ãªããªãããã¨ãã£ããã®ããªãã§ããã Webã¹ã¯ã¬ã¤ãã³ã°ã©ã¤ãã©ãª HTMLScraping HTMLãXMLåãã¦DOMãXPathã§æä½ã§ããã¯ã©ã¹ã主ã«HTTP_Request+HTMLParser(XML_HTMLSax3ãå«ã)/Tidy+Cache_Liteã¨ããæ§æã§ãã¹ã¯ã¬ã¤ãã³ã°ã«å¿ è¦ãªãã®ãä¸éãæã£ã¦ãããã©ã¤ã»ã³ã¹ã¯LGPLä»ã WebScraper ã·ã³ãã«ãªæ±ç¨ã¹ã¯ã¬ã¤ãã³ã°ã¯ã©ã¹ãHTTP_Client+HTMLParser(XML_HTMLSax3ãå«ã)ã¨ããæ§æã§ãXPathã§è¦ç´ ãæ½åºã§ã
harukiã§ãã æºå¸¯ãµã¤ãä½æã®éã«ä½¿ããPHPã®ã©ã¤ãã©ãªãç¥ã£ã¦ããã ãç¾ åãã¦ã¿ã¾ãã Net_UserAgent_Mobile åºæ¬ã¨ãªãã©ã¤ãã©ãªã§ããæ©ç¨®å¤å®ãªã©ãæ§ã ãªç¨éã«ä½¿ç¨ãã¾ãã ç´°ããæ å ±ã«ã¤ãã¦ã¯ãã¹ã¯ã¬ã¤ãã³ã°ãªã©ãããããã¦èªåã§ç¨æããå¿ è¦ãããã¾ãã PEAR::Mail ã¡ã¼ã«ã®éä¿¡ã«ä½¿ç¨ã§ãã¾ãã ç¹æ®ãªéä¿¡ã®éã¯ãMail::factory()ã«smtpã§ä½¿ç¨ãããã¨ã«ãªãã¾ããããã£ãªã¢ã®è¿·æã¡ã¼ã«ã®è¨å®ã«ãæ°ãã¤ããå¿ è¦ãããã¾ãã Mail_mime_Decomail (Y-110's Wiki) Mail_mimeã¨åã使ãæ¹ã§ããã³ã¡ã¼ã«éä¿¡ç¨ã«MIMEãçµã¿ç«ã¦ããã¨ãã§ããã®ã§ã¨ã¦ã便å©ã§ãã Mail_mimeDecode 空ã¡ã¼ã«ã»ã¨ã©ã¼ã¡ã¼ã«ãªã©ãåãåã£ã¦è§£æããéã«ä½¿ç¨ãã¾ãã 解æã®éã«ã¯ãMail_RFC822:
ã¯ã¦ãã§otsuneãããkazuhookuãããPHPã¯ãªãªãã£ã«ã¤ãã¦åéããã¦ããã®ã§ãä¸è¨ç³ãä¸ããã¨ãããåèã«ãããæ¹ãããããã§ãããã¡ãã£ã¨è£è¶³ãã¾ãã ããã¤ãå®è£ ã§ã®ãæ£ããã¡ã¼ã«ã¢ãã¬ã¹ãã調ã¹ã¦ã¿ã¾ããã phpspot function is_mail($text) { if (preg_match('/^[a-zA-Z0-9_\.\-]+?@[A-Za-z0-9_\.\-]+$/',$text)) { return TRUE; } else { return FALSE; } } PEAR::Mail_RFC822 function isValidInetAddress($data, $strict = false) { $regex = $strict ? '/^([.0-9a-z_+-]+)@(([0-9a-z-]+Â¥.)+[0-9a-z]{2,})$/i'
ãªãã ãããã«é·ã説æã°ããæ¤ç´¢ã«å¼ã£ããã£ãã®ã§æ¸ãã¾ããã Linuxã®ãã¼ã«ã«ç°å¢ã§Dockerã³ã³ããå ã®Xã¢ããªï¼GUIã¢ããªï¼ãå©ç¨ããã«ã¯ $ xhost localhost + ãå®è¡ããå¾ã« $ docker run --rm --net host -e "DISPLAY" container_image_name x_app_binary_path ã¨ããã°è¯ãã§ãã ãã£ã¨èªã SSHãªã©ããç¥ããããµã¼ãã¹ãã¼ãã§ä½ã対çããã«ããã¨æ°ããããªããããã®æ»æãªã¯ã¨ã¹ããæ¥ã¾ããä¸å¿ è¦ãªãã°ãå¢ããã¦ãªã½ã¼ã¹ãç¡é§ã«ããããä¸ç¨æãªã¦ã¼ã¶ã¼ãã·ã¹ãã ãããã¨æ»æã«æåããå ´åãããã¾ãã Sshguardã¯Cä½ããã¦ãããflex/bisonã®ãã¼ãµã¼ã«ã¼ã«ã足ãã°æ¡å¼µã§ãã¾ããã«ã¹ã¿ã çãã¡ã³ããã³ã¹ããã®ãé¢åã§ããå¿ è¦ãªã«ã¼ã«ã足ãã¦ãã«ãªã¯ã¨ã¹ããéã£ã¦ããã¼
12 PHP optimization tips Ilia Alshanetskyâs PHP performance talk given last week at the Zend conference is pretty useful as far as getting small tips for tweaking PHP code. PHPæé©åãã¯ããã¯ãç´¹ä»ããã¦ãã¾ããã®ã§ä»¥ä¸ã«ã¾ã¨ãã¦ã¿ã¾ããã staticã¡ã½ããã使ãããªã使ãããé度ã¯4åã«ãªã __get, __set, __autoload ã¯ä½¿ããªã require_once ã¯éã include, requireã§èªã¿è¾¼ããã¡ã¤ã«ã¯ãã«ãã¹ã«ããã ã¹ã¯ãªããéå§æã®UNIXã¿ã¤ã ã ï¼_SERVER['REQUEST_TIME'] ã§åãã strncasecmpé¢æ°ãstrpbrké¢æ°ã使ããã±ã¼ã¹ã¯
zuzara.comã®åãµã¼ãã¹ã¯ããªãããã®ãµã¼ãã§éå¶ããã¦ãã¾ããæ¥é ã®æè¬ãè¾¼ãã¦æé¡263åã®ãµã¼ãã¹ããããªãã¼ããã°ã©ãã³ã°ãããä¸ã§ããã«ä½¿ãåãã¦ãããç´¹ä»ãããã¨æãã¾ãã å®ãã ã¼ã ã¼ãã¡ã¤ã³ã§ç¬èªãã¡ã¤ã³ã®.comãè²·ã£ã¦ãå年度ç´5000åã®æè³ã®ã¿ãããã¯ããã®ãããã³ã¹ãããã©ã¼ãã³ã¹ã ã¨æãã ãµããã¡ã¤ã³ãã¼ãã£ã«ãã¹ãã¨æãããè¨å®ãWebä¸ã®ç®¡çç»é¢ããè¡ãããµããã¡ã¤ã³ãç¡å¶éã«ä½ãããï¼ããã¥ã¡ã³ãã«æè¨ããã¦ããªã模æ§ã ãå¶éã¯ãããããããªãï¼åãµã¼ãã¹ãã¨ã«çµ¶å¯¾ãã¹ã/ã«ãªã£ã¦ãããã®ã§ç®¡çãã¡ãã£ã¨æ¥½ã PHP+MySQL2009å¹´6æç¾å¨ã¯PHP5ãé¸æã§ããããã«ãªã£ããä»ãã使ãã®ã§ããã°èªåçã«5ã«ãªãããã¼ã¸ã§ã³ã¯5.2.6ãã³ã³ãã¤ã«ãªãã·ã§ã³ã¯ä»¥ä¸ãcurlãopensslã使ããããã«ãªã£ãã5ããç»å ´ã®PDOãjsonã使
å¹³ç´ ãããPHPããï¼ãããæ顧ããã ããèª ã«ãããã¨ããããã¾ãã 2006å¹´ããéå¶ãã¦ã¾ããã¾ãããPHPããï¼ãã§ããããµã¼ãã¹ã®å©ç¨ç¶æ³ãéã¿ã¾ãã¦ã2018å¹´9æ25æ¥ï¼ç«ææ¥ï¼ããã¡ã¾ãã¦ãµã¼ãã¹ãçµäºããã¦ããã ããã¨ã«ãªãã¾ããã ãµã¼ãã¹çµäºã«ä¼´ãã¾ãã¦ã2018å¹´8æ28æ¥ï¼ç«ææ¥ï¼ãæã¡ã¾ãã¦ãæ°è¦ä¼å¡ç»é²ãªãã³ã«Q&Aæ²ç¤ºæ¿ã¸ã®æ°ããªè³ªåãåçã®æ稿ãåæ¢ããã¦ããã ãã¾ãã ãªãããç»é²ããã ããçæ§ã®å人æ å ±ã«ã¤ãã¾ãã¦ã¯ããµã¼ãã¹çµäºå¾ãå¼ç¤¾ã責任ããã£ã¦æ¶å»ãããã¾ãã ããã¾ã§å¤ãã®çæ§ã«ãå©ç¨ãããã ãã¾ãã¦ãèª ã«ãããã¨ããããã¾ããã ãµã¼ãã¹çµäºã«ä¼´ããçæ§ã«ã¯ãä¸ä¾¿ãããããããã¾ããã¨ãå¿ãããè©«ã³ç³ãä¸ãã¾ãã æ¬ä»¶ã«é¢ãããåãåããã¯ãã¡ããããé¡ããããã¾ãã
å°¾è¤æ£äººã§ãã ã¢ã¯ã»ã¹æ°ã®å¤ãã³ã³ã·ã¥ã¼ãåãã® web ãµã¼ãã¹ã¯ãå¦çé度ãããªãéè¦ã«ãªã£ã¦ãã¾ãã å¿çé度ãé ãã¨ä½¿ç¨ãã¦ããã¦ã¼ã¶ã«ã¨ã£ã¦ã¹ãã¬ã¹ã«ãªãã¾ããã å¦çã«æéããããã°ãµã¼ãã«å¯¾ããè² è·ãé«ããªãã¾ã(å³å¯ã«è¨ãã¨éã)ã ããã§ã¦ãã¦ã§ã¯ãããããªå·¥å¤«ããã¦å¦çé度ã®é«éåãè¡ã£ã¦ãã¾ãã ä¸å£ã«é«éåã¨ãã£ã¦ããããããªè¦ç´ ãããã¾ããã大ããåãã¦3ã¤ã®æ®µéãããã¾ãã ã»ãã¼ãã¦ã§ã¢ã«ããé«éå ã»ã½ããã¦ã§ã¢ã«ããé«éå ã»ããã°ã©ã ã®å·¥å¤«ã«ããé«éå ããããããã3ã¤ã¯ç¬ç«ã§ã¯ãªããäºãã«å½±é¿ããã£ã¦ããã®ã§å®å ¨ã«åãã¦èãããã¨ã¯ã§ãã¾ããã ãããããã©ã®ãããªé¨åã«å½±é¿ãä¸ãã¦ããã®ããã¡ããã¨ç解ãã¦ãã¥ã¼ãã³ã°ãããã¨ã大äºã§ãã ãã ããé«éåããã¨ãã«å¿ãã¦ãããªãã®ããé«å¯ç¨æ§ã§ãã ãããé«éã«åä½ãã¦ãå®å®ãã¦åä½ã
è¶ ã»æ¥µãã! PHP ã®PHPãã¬ã¼ã ã¯ã¼ã¯ç¹éã«çµ¡ãã§ããã¬ã¼ã ã¯ã¼ã¯ã®ãªã¹ãããã£ããä¸ããã¨ç·¨éãããããªã¯ã¨ã¹ãããã£ãã®ã§ãããã¯ãã¼ã¯ããæãåºãã¦ã¿ã¾ãããããã¶ããããªãã(ã¡ãªã¿ã«ABCé ã«ä¸¦ãã§ã¾ãã) Achievo Tool Kit (ATK) http://www.achievo.org/atk Agavi http://agavi.org/ AwesomeFramework https://sourceforge.net/projects/awesome-work/ binarycloud http://www.binarycloud.com/ Biscuit http://bennolan.com/biscuit/ bitweaver http://www.bitweaver.org/wiki/ BlueShoes http://www.blueshoes.o
ãã®ãã¼ã¸ã«ã¤ãã¦ã®èª¬æã»æ³¨æãªã© PHP ã¯ãApache ã¢ã¸ã¥ã¼ã«ããCGIãã³ãã³ãã©ã¤ã³ã¨ãã¦ä½¿ç¨ã§ããã¹ã¯ãªããè¨èªã§ãããã®ãã¼ã¸ã§ã¯ã主㫠PHP ã«ããããWeb ã¢ããªã±ã¼ã·ã§ã³ã®ã»ãã¥ãªãã£åé¡ã«ã¤ãã¦ã¾ã¨ãã¦ãã¾ãã Web ã¢ããªã±ã¼ã·ã§ã³ã®ã»ãã¥ãªãã£åé¡ã¨ãã¦ã¯ã以ä¸ã®åé¡ã«ã¤ãã¦ããåãæãããã¦ããã¨æãã¾ããããããã®ã»ãã¥ãªãã£åé¡ã«ã¤ãã¦èª¿ã¹ããã¨ããããã以å¤ã§ããPHP ã«é¢é£ãã¦ããã»ãã¥ãªãã£åé¡ã«ã¤ãã¦ç¥ã£ã¦ãããã¨ã«ã¤ãã¦ã¡ã¢ãã¦ããã¾ãã ã¯ãã¹ãµã¤ãã¹ã¯ãªããã£ã³ã° SQL ã¤ã³ã¸ã§ã¯ã·ã§ã³ ãã¹ã»ãã©ãã¼ãµã«(ãã£ã¬ã¯ããªã»ãã©ãã¼ãµã«) ã»ãã·ã§ã³ãã¤ã¸ã£ã㯠ã³ãã³ãã¤ã³ã¸ã§ã¯ã·ã§ã³ ã¾ããPHP ããã¥ã¢ã« : ã»ãã¥ãªãã£ããPHP Security Guide (PHP Security Consortium) ã«ã¯ãPH
ããã°ã©ãã³ã°åå¿è ãPHPãå¦ã¶ã¨ãã®æ¹æ³ã¯ãã ãããã«ããã¦ãæ¬ãè²·ã£ã¦èªããã§ããããããããæ¬ãé¸ã¶ã®ã«å¤±æãã¦ãã¾ãã¨ããªããªãä¸éããªãã£ãããã¦ãæ²ããæãããã¾ãã ã¨ããããã§ãããããããã°ã©ãã³ã°åå¿è ã§ããã失æãã¦ãã®ã§ãããããããæ¬ãè²·ã£ããããã§ããããããã©ã®æ¬ãããããã¨ããã®ãããã£ã¦ãã¾ããããæ¬ãããããã¦ã©ããè²·ã£ãããããããããªããã¨ãã人ã®ããã«ãããè²·ã£ããã©ãããã¨ããã®ãæ¸ãã¦ã¿ã¾ãã åæã¨ãã¦ããåå¿è ã§ãããããã©ããããåå¼·ãããããããéç¹ã«ããã¦ãã¾ããè¯æ¸ã¨å¼ã°ããæ¬ã§ãç解ã§ããªããã°æå³ãªãã§ããã -----------
PHPãããç¨åº¦ä½¿ããããã«ãªã£ã¦ãããã¬ã³ã¿ã«ãµã¼ããåãã¦ã¿ã¾ãããã èªåã§ä½ã£ãã½ãããå ¬éããããèªåå°ç¨ã®ãã¼ã«ç½®ãå ´ã«ããããããããéã¹ã¾ãã ã¬ã³ã¿ã«ãµã¼ãã¼åå¿è ã®æ¹ã¯ã³ã©ã ãåèã«ãã¦ãã ããã phpã使ããã¬ã³ã¿ã«ãµã¼ãæ¯è¼) ã»æé¡ï¼ï¼ï¼ï¼å以ä¸ã§PHPï¼MySQLå¯ãªã¬ã³ã¿ã«ãµã¼ãã¼ ã»æé¡ï¼ï¼ï¼ï¼å以ä¸ã§ä½¿ããã¬ã³ã¿ã«ãµã¼ãã¼ ã»æé¡ï¼ï¼ï¼ï¼ï½ï¼ï¼ï¼ï¼åã§ä½¿ããã¬ã³ã¿ã«ãµã¼ãã¼ ã»æé¡ï¼ï¼ï¼ï¼ï½ï¼ï¼ï¼ï¼åã§ä½¿ããã¬ã³ã¿ã«ãµã¼ãã¼ ã»phpã¨MySQLã使ããã¬ã³ã¿ã«ãµã¼ãã¼ ã»phpã¨PostgreSQLã使ããã¬ã³ã¿ã«ãµã¼ãã¼ ã»å°ç¨ãµã¼ãã¼ ã³ã©ã ) ã»ã¬ã³ã¿ã«ãµã¼ãã¼ãåããã¨ä½ãã§ããã®ãï¼ ã»ããã¬ã³ã¿ã«ãµã¼ãã¼ã®é¸ã³æ¹ã¯ï¼ ã»ã¬ã³ã¿ã«ãµã¼ãã§åä½ããphpã®ç¨®é¡ã¨çæç¹ ã»PHPå¦ç¿ã«æé©ãªã¬ã³ã¿ã«ãµã¼ãã¼ ã»ä»äºã«å½¹ç«ã¤ãã¼ã«ã¨ã㦠ã»å°ç¨ãµã¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}