Tokenã¯ã©ã¹ã®å®è£ ã¯ã©ã¹ã¡ã½ãã Tokenã¯ã©ã¹ã®èªã¿è¾¼ã¿ Token::create() Token::validate()
Tokenã¯ã©ã¹ã®å®è£ ã¯ã©ã¹ã¡ã½ãã Tokenã¯ã©ã¹ã®èªã¿è¾¼ã¿ Token::create() Token::validate()
ãã®è¨äºã§ã¯ãMac ã®ç°å¢ãã¡ã¤ã³ã«èª¬æãã¾ãããWindows ç°å¢ã§è¡ãæ¹æ³ãè£è¶³ãã¾ãã éçºç°å¢ã®æ§ç¯ã¯ãã¿ã¼ããã«ã使ã£ã¦ã³ãã³ãã§æ示ããã¾ãã ãã®è¨äºå ã§ã¯ãã³ãã³ãèªä½ã®è©³ãã説æã¯ãã¾ããã®ã§ãä¸æãªç®æã¯èª¿ã¹ã¦ãã ããã Windows ã®æ¹ã§ãã³ãã³ãããã³ãããå©ç¨ãã¦ããæ¹ã¯ãGit for Windows ãã¤ã³ã¹ãã¼ã«ãã¦ãGit Bash ã¨ããã½ããã使ã£ã¦ä½æ¥ãã¦ãã ããã æåã« LaravelãVirtualBoxãVagrantãHomesteadãComposer ã«ã¤ãã¦ç°¡åã«å¦ãã å¾ã«ãå®éã«éçºç°å¢ã®æ§ç¯ãè¡ãã¾ãã ç§èªèº«æªçã§ãã®ã§èª¬æã«èª¤ããããããããã¾ããã 誤ããããã°ããææãã ãã ((_ _ (´Ïï½ )ï¾ï¾ï½º 第1ç« Laravel ã¨ã¯ 第2ç« VirtualBox ã¨ã¯ 第3ç« Vagrant ã¨ã¯ 第4ç« Ho
PHP5.3ããã¯ãã¼ã¸ã£ãå©ç¨å¯è½ã§ãããé«éé¢æ°ãç©æ¥µçã«å©ç¨ãã¦ç°¡æ½ãªã³ã¼ããå¿ããããã®ã§ãããä¸åº¦èª¿ã¹ã¦ãããªãã¨æå¤ãªé¢æ°ãå©ç¨å¯è½ã§ãããã¨ã«æ°ã¥ããªãã£ããããã®ã§ã¾ã¨ã(å人çã«ãã使ãé )ã array_map PHP: array_map - Manual é«éé¢æ°ã§æã代表çã¨æããããã®ãmap-reduceã®mapãé åã®åè¦ç´ ãã¯ãã¼ã¸ã£ãç¨ãããããã³ã°ãè¡ããå¥ã®é åãä½ãã¾ãã <?php $prices = [100, 200, 300]; $taxInPrices = array_map(function($price) { return $price * 1.08; }, $prices); var_dump($taxInPrices); // array(3) { // [0]=> float(108) // [1]=> float(216) /
ä»é±æ«ã«åå ´å ¬éããããå¹³æã©ã¤ãã¼å¯¾æåã©ã¤ãã¼ ä»®é¢ã©ã¤ãã¼å¤§æ¦ feat.ã¹ã¼ãã¼æ¦éãã«èå é 人ãç»å ´ããã¨ããã¦æå¾ ãããä¸å®ã«é§ããã¦ãã kagata ã§ããä»®é¢ã©ã¤ãã¼ã30人ãåºã¦ãããç¥ãæ ç»ã§ãå½¼ã®è ããã£ãæ§æ ¹ãã¨ããè¤éã«å±æãããã£ã©ã¯ã¿ã¼ãæããããã¨ãã§ããã®ã§ããããããããªããã奴ã«ãªã£ã¦ããã©ããããâ¦ããããã¨ãã°åå ´çã¸ã£ã¤ã¢ã³ã®ããã«â¦ã ãã¦ãä»å㯠PHP ã¨ãã¹ã¯ã¼ãããã·ã¥ã®ã話ã§ãããã¹ã¯ã¼ããå¹³æã§ç®¡çãã¦ããæ代ã¯é ãéãå»ãã¾ããï¼ã¨æãããï¼ãã¾ããã¹ã¯ã¼ãããã·ã¥ã®ã¢ã«ã´ãªãºã ãããã¤ã¦ãã使ããã MD5 ã SHA1 ãããå®å ¨ã¨ããããã®ãç»å ´ãã¦ãã¾ãããããªä¸ãä»ç¾å¨ã®ãã¹ããã©ã¯ãã£ã¹ã¯ã©ããªã£ã¦ããã®ããPHP ããã¥ã¢ã«ã®å ¬å¼ï¼ï¼ï¼è¦è§£ãã²ãã¨ãã¦ã¿ã¾ããã PHP ããã¥ã¢ã«ã®è¦è§£ PHP ããã¥ã¢ã«ã«ã¯ãã®
4æã«ãªã£ãã®ã§å¿æ©ä¸è»¢ãã¤ã¨ãããã¾ãï¼ æãã°3æãå¿æ©ä¸è»¢ãã¾ãããããããã°1æããã¾ããã â¦ããã°ãã¾ãï¼ PHP å©ç¨ãã¦ãã人ã«ã¯ã馴æã¿ã®ããstrtotimeãã¨ããé¢æ°ãããã¾ãã è±æå½¢å¼ã®æ¥ä»ã Unix ã¿ã¤ã ã¹ã¿ã³ãã«å¤æãã¦ããããããã¯ããã¯ä¾¿å©ãªé¢æ°ã§ããããã¦ãããã¾ããåã沢山ã®æååããµãã¼ããã¦ã¦ãä¸æãã¤ãã¨è²ã ã便å©ãªã®ã§ãããã¤ãã¤ãå¿ãã¦æ¯åã°ã°ã£ã¦ãã¾ã£ã¦ããèªåããã¾ãã ã¨ãããã¨ã§ãèªåã¸ã®åå¿ãå ¼ãã¦è¨äºã¨ãã¦ã¾ã¨ãã¦ã¿ããã¨æãã¾ãã åºæ¬ ã¾ã㯠strtotime ã®åºæ¬çãªä½¿ãæ¹ãdate é¢æ°ã¨çµã¿åãããã¨ä¾¿å©ã§ããã ãã¨ãã°ãããªæãã echo date("Y-m-d", strtotime("today")); ããã§ã2014-04-02ããåºåããã¾ããã¾ãããã¯ãdate("Y-m-d")ãã¨åãã§ãã
è¡ã£ã¦ãã¾ãããã¡ãã£ã¨è©±ãã¾ããã http://yamiphp.doorkeeper.jp/events/8749 https://twitter.com/search?q=%23yamiphp&f=realtime åçºè¡¨è ã®ã¿ã¤ãã«ã¨ã¹ã©ã¤ãã¯ä»¥ä¸ã§ãã @chobi_eãã ãå ¥éZend Memory Managerã 第äºåéPHPåå¼·ä¼ã§å ¥éZendMemoryManagerã«ã¤ãã¦è©±ãã¦ãã¾ãã @co3kãã ããå㯠PHP ã®æ´å²çãªçç±ã®æ°ãè¦ãã¦ãããã ãå㯠PHP ã®æ´å²çãªçç±ã®æ°ãè¦ãã¦ããã®ã from Kousuke Ebihara @moriyoshitãã ããããããªãPHPéæ¹é 2014ãzend_astãªã©ãä¸å¿ã«ã https://dl.dropboxusercontent.com/u/673207/yami-php-201403/co
PHP ã¨ããã°å°è±¡çãªã®ã¯ãæ´å²çãªçç±ã (âé»æ´å²) ã®æ°ã ã§ããã ãã®ã»ãã·ã§ã³ã§ã¯ãæ®æ®µéã«ããã£ã¦ãã¦ã¹ãããã®å½ãããã¨ã®å°ãªããæ´å²çãªçç±ããã¡ãå¼ãããåºããå¾¹åºè¿½åããé ãæ±ãã¦ãããã¨æãã¾ããRead less
ãã«ãã¡ã¾ãã¨ããã® ãããããPHPã®æç§æ¸ããã®ãã³æ¹çããã¦ããããããPHPã®æç§æ¸ ãPHP5.5対å¿çãã¨ãã¦åºçããã¾ãããæ§çã¯mysqlé¢æ°ã使ã£ã¦SQLå¼ã³åºããã¦ãã¾ããããmysqlé¢æ°ãPHP5.5ã«ã¦éæ¨å¥¨ã¨ãªã£ãããã®ç·æ¥å¯¾å¦çãªå 容ã¨ãªã£ã¦ããããã§ããã¤ã¾ããå¾æ¥mysqlé¢æ°ãå¼ã³åºãã¦ããç®æãmysqliã®å¼ã³åºãã«å¤æ´ããã¨ããã®ãã主ãªå¤æ´ç¹ã®ããã§ããã以å¤ã¯ãã¾ãå¤æ´ç¹ã¯è¦ãããã¾ããã æ¢ã«ãAmazonã§ã¯ãç±çãªèªè ã®æ¹ããã®è©³ç´°ã®ã¬ãã¥ã¼ãå±ãã¦ãã¾ãã ç¥æ¬å¾¡éè¨ï¼ è¨ããã¨ç¥ããPHPããã°ã©ãã³ã°æ¸ç±ã®ãã³ã°ã»ã©ã¼ã 2010å¹´9æã«çºå£²ãããåä½ã®æ¹è¨çã PHPã®ãã¼ã¸ã§ã³ãææ°ã®5.5ã«å¯¾å¿ãå 容ã¯åä½ã¨æ®ã©åãã å°ãåã«åä½ãè³¼å ¥ããæ¹ãæ¬æ¸ãè³¼å ¥ããæ¹ãããã§ãããã ãä¸ç¥ã ããã«ãã¦ãã帯ã®ãï¼ä¸äººã«èªã¾ããå®
<?php function getFileList($dir) { $files = scandir($dir); $files = array_filter($files, function ($file) { // 注(1) return !in_array($file, array('.', '..')); }); $list = array(); foreach ($files as $file) { $fullpath = rtrim($dir, '/') . '/' . $file; // 注(2) if (is_file($fullpath)) { $list[] = $fullpath; } if (is_dir($fullpath)) { $list = array_merge($list, getFileList($fullpath)); } } return $li
åãã¾ãã¦ã kagata ã§ããããã·ã£ãã°ããã«è¨äºãæ¸ã人ãåéãã¦ããã¨èãã¤ãã¦ï¼ï¼ï¼ãã¯ãã°ã京é½ãããã横æµã¾ã§å¼ã£è¶ãã¦ã¾ããã¾ããã以å¾ãããããé¡ããããã¾ãã ãã¦ãè¨å¿µãã¹ãããã¥ã¼æ¦ã¨ãªãä»åã¯ãPHPã§é åãããã¤ãã«åå²ããã¨ããæä½ãããã«ããã£ã¦èãããã¨ããç´¹ä»ãã¾ããããé£ãããªã話ãªã®ã§ãããã©ãããã¤ããããã ããã ä¾é¡ï¼10åã®è¦ç´ ãæã¤é åã4åã®é¨åé åã«åå²ãã ã¯ãããå¯ãã®ã¨ãããã¿ã¤ãã«ã§ãçåãããã¨ããã£ã¦ãããªããçåã§ãã£ããªãä¾é¡ãç«ã¦ã¾ãããä½ããåºãå ´åã©ããããããããã¦æ¤è¨ãããã¨ãããã¨ã§ããã§ã¯å§ãã¾ãã æ¹æ³1. array_chunk() ã使ã PHPã«ã¯é åãåå²ãããã«ãã¤ã³é¢æ°ã¨ãã¦ã array_chunk() ãç¨æããã¦ãã¾ãã é åããè¦ç´ æ°ã size ã®é åã«åå²ãã¾ãã æå¾ã®é¨åã®è¦
ã¤ãã¼æ ªå¼ä¼ç¤¾ã¯ã2023å¹´10æ1æ¥ã«LINEã¤ãã¼æ ªå¼ä¼ç¤¾ã«ãªãã¾ãããLINEã¤ãã¼æ ªå¼ä¼ç¤¾ã®æ°ããããã°ã¯ãã¡ãã§ããLINEã¤ãã¼ Tech Blog Yahoo!ãããããã¼ãããã¯ã¼ã¯ã®ä¸é(@Hiraku)ã§ããå æ¥ãä¼ãããéãã2013/9/14(å)ã«PHPã«ã³ãã¡ã¬ã³ã¹2013ãéå¬ãããYahoo! JAPANãåå ãã¾ããã ãã©ãã¯ãè¤æ°èµ°ã大ããªã¥ã¼ã ã§ãå½æ¥å ¨ä½ã®ã¬ãã¼ãã¯ã¨ã¦ãæ¸ããããªãã®ã§ãæè¡è©è«ç¤¾ãã¾ã«ããå½æ¥ã¬ãã¼ãããTogetterã®ã¾ã¨ããUSTREAM ä¸é奥ä¼å ´ãUSTREAM äºéå°å±ç¤ºãã¼ã«ãUSTREAM å éä¼è°å®¤ãªã©ãåããã¦ã覧ããã ããã°ã¨æãã¾ãã ãã®è¨äºã§ã¯ãYahoo! JAPANã¨ãã¦ã©ã®ãããªçºè¡¨ãããã®ããã»ãã·ã§ã³ã«ã¤ãã¦ã®è£è¶³ãªã©ãæ¸ããã°ã¨æãã¾ãã ã»ãã·ã§ã³ã¬ãã¼ã PHPã³ã¢ããèªã¿è§£ãå®ç³ã®å
9. åé¡ã®å®è£ 9 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 <?php class BlackListDB { const DBPATH = "/tmp/db.gdbm"; public function isBlock($id) { $dbh = dba_open(self::DBPATH, "r", "gdbm"); if ($dbh === false) { return null; } $ret = dba_exists($id, $dbh); dba_close($dbh); return $ret; } } 10. åé¡ç¹ 10 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 <?php class BlackListDB { const DBPATH = "/tmp/db.gdbm"; publ
PHPã«ã³ãã¡ã¬ã³ã¹2013ã«ããã徳丸ã®ãã¬ã¼ã³è³æã§ããå¾ãããåèæç®ãªã©ãå çãã¾ãããRead less
Malware Hidden Inside JPG EXIF Headers ã¨ãã話é¡ãã§ã¦ããã®ã§è¦ã¦ã¿ãã¨ãããåã« preg_replace ãã»ãã¥ãªãã£ä¸åé¡ãããã¤ã³ã¿ã¼ãã§ã¤ã¹ã ã¨ãã話ã§ãã£ã¦ãEXIF äºã ã¯ç´æ¥çã« é¢ä¿ããªããé£ãã¨ã³ããªã§ãããã¨ãå¤æããã preg_replace ã¯ç¬¬ä¸å¼æ°ã«æ£è¦è¡¨ç¾ã渡ããããã®éã«å¤é¨ããã®å ¥åããã®ã¾ã¾ãããã¨å±éºã¨ãã話ã ãªããªãã° preg_replace 㯠'/.*/e' ã®ããã«ãeval flag ãããããã¨ãã§ããããã ã 以ä¸ã®ã³ã¼ããã¿ãã <?php preg_replace('/.*/e', 'eval("echo 5960+3;")', ''); ã¤ã¾ããpreg_replace($_POST['foo'], $_POST['bar'], '') ã®ãããªã³ã¼ãããã£ãå ´åãä»»æã®ã³ã¼ããå®è¡
ã¯ããã« æ¬é£è¼ã§ã¯ãPHPã§PDFãä½æããã¨ã¯ã¹ãã³ã·ã§ã³ã§ããHaruã«ã¤ãã¦ç´¹ä»ãã¦ãã¾ããä»åã¯ç»åã®è¡¨ç¤ºæ¹æ³ã帳票åºåæã«è¨å®ã好ã¾ããããããã£ã¨ã»ãã¥ãªãã£è¨å®ã®æ¹æ³ãããã¦ååç´¹ä»ããæ¹æ³ãå«ãã¦ãç°¡åãªå¸³ç¥¨åºåãéãã¦ããå®è·µçãªä½¿ãæ¹ãç´¹ä»ãã¾ãã 対象èªè PHPã®åºæ¬æ§æãç解ãã¦ããæ¹ã§ã帳票å°å·ãPDFãã¡ã¤ã«ã«èå³ãããæ¹ã対象ã¨ãã¦ãã¾ãã å¿ è¦ãªç°å¢ ãã®è¨äºã§ã¯ã以ä¸ã®ã©ã¤ãã©ãªã使ç¨ãã¦ãã¾ãã libharu 2.1 haru 1.0.4 ã¾ããPHP 5.4ã使ç¨ããLinuxã§åä½ã®ç¢ºèªãè¡ã£ã¦ããã¾ããåé ç®ã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ãååãåç §ãã¦ãã ããã ç»åã表示ãã ç»åãèªã¿åºãã¡ã½ããã¯ã以ä¸ã®3ã¤ã®ã¡ã½ããã使ã£ã¦HaruImageãªãã¸ã§ã¯ããä½æãã¾ããå¾ã£ã¦ããã以å¤ã®ãã©ã¼ãããã®å ´åã«ã¯ãä¸åº¦ãããã®ãã©ã¼ãããã«GDã©ã¤
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}