2015-01-01ãã1å¹´éã®è¨äºä¸è¦§
decimalåã¨ã¯ ãããã¯ç¡ãæµ®åå°æ°ç¹ãã¯ãåæ¡ã®æ°å¤ã1æåãã¤æååã¨ãã¦æ ¼ç´ãã¾ãã æµ®åå°æ°ç¹ï¼FLOATåã»DOUBLEåï¼ã§ã¯æ¼ç®ã«èª¤å·®ãçããå ´åããããããéé¡ãªã©æ£ç¢ºãªæ¼ç®ãè¡ãã«ã¯ãããã¯ç¡ãæµ®åå°æ°ç¹ï¼DECIMALåã»NUMERICåï¼ã使ç¨ãâ¦
FTPæ¥ç¶ã¨ã¯ ã¨ããã£ã¼ãã¼ FTP ã File Transfer Protocol ã ãã¡ã¤ã«è»¢éãããã³ã« FTPã¨ã¯ãã¤ã³ã¿ã¼ããããªã©ã®TCP/IPãããã¯ã¼ã¯ã§ãã¡ã¤ã«ã転éããã®ã«ä½¿ããããããã³ã«ã®1ã¤ã FTPãµã¼ããFTPã¯ã©ã¤ã¢ã³ãã®äºç¨®é¡ã®ã½ããã¦ã§ã¢ãç¨ãã両â¦
ãªãVimãªã®ã Vimã¨ããããã¹ãã¨ãã£ã¿ã¼ã¯ã ãé常ã¢ã¼ãããæ¿å ¥ã¢ã¼ãããã³ãã³ãã¢ã¼ãããã´ã£ã¸ã¥ã¢ã«ã¢ã¼ãããªã©åãæ¿ãããã£ãããæ £ããã®ã«åè¦å «è¦ãªä»£ç©ãªã®ã§ãã ã§ããããããã¤ã³ã¹ãã¼ã«ãã¦ããã¨ããã¹ã®è¨å®ãªã©ãããªãã¦ããâ¦
VirtualBoxã«ä½æããä»®æ³ãã·ã³ï¼CentOS7ï¼ã§ããyum -y updateãã³ãã³ããå®è¡ããéã«ããã·ã¹ãã ãã¡ã¤ã«ç©ºã容éãä¸è¶³ãã£ã¦ããã¨ã©ã¼ãåºãã®ã§ã空ã容éãå¢ããã¦ã¿ããã¨ãã試ã¿ã§ãã ãããããã¤ã³ã¹ãã¼ã«ã¨ãã»ã¨ãã©ãã¦ãªãã¯ããªã®ã«â¦
ãªã¢ã¼ãæ¥ç¶ã¨SSHï¼Secure SHellï¼ ãªã¢ã¼ãæ¥ç¶ â ãããã¯ã¼ã¯çµç±ã§å¥ã®ãã¹ãã«æ¥ç¶ãããã¨ã 以åã¯ãtelnetã¨ãããã®ã使ããã¦ããããã§ãããtelnetã¯éä¿¡ãæå·åãããªããããçè´ãªã©ã«ãã£ã¦æ å ±ã®æ¼æ´©ãèµ·ãã£ã¦ãã¾ãã¾ãã ããã§ãç»å ´â¦
XAMPPï¼Linuxåãï¼ãã²ã¹ãOSã«ã¤ã³ã¹ãã¼ã« VirtualBoxãèµ·åããããCentOS7ãã¤ã³ã¹ãã¼ã«ããä»®æ³ãã·ã³ãèµ·åããã¾ãã ãã°ã¤ã³ãããããã¢ããªã±ã¼ã·ã§ã³ã>ããæ°ã«å ¥ãã>ãFirefox ã¦ã§ãã»ãã©ã¦ã¶ããé¸æãã¾ãã ãã©ã¦ã¶ã表示ãããã®ã§â¦
VirtualBoxã¨ã¯ï¼ Oracle VM VirtualBoxï¼ãªã©ã¯ã« ãã¤ã¨ã ãã¼ãã£ã«ããã¯ã¹ï¼ã¨ã¯ãx86ä»®æ³åã½ããã¦ã§ã¢ã»ããã±ã¼ã¸ã®ä¸ã¤ãç¾å¨ã®éçºã¯ç±³å½ãªã©ã¯ã«ãè¡ã£ã¦ããã ä»®æ³åã½ããã¨ãã¦ã¯ãVMware社 (VMware Inc.)ã® VMware Playerãæåã§ãã â© â¦
VB6ï¼Microsoft Visual Basic 6.0ï¼ã®ã©ã³ã¿ã¤ã ã¨ã¯ï¼ Visual Basicã§ä½æãããã½ããã®åä½ã«å¿ è¦ãªDLLãã¡ã¤ã«çãéãããã®ã§ãã ããããªãã¨ãã½ãããèµ·åããªãã£ãããèµ·åãã¦ãæååããèµ·ãããããã¾ãã ä¾ãã°ããªãããã®ã¢ããªã±ã¼ã·ã§â¦
Webã¢ããªã±ã¼ã·ã§ã³ã®èå¼±æ§ãããã ã¹ã¯ãªããæ¿å ¥æ»æï¼Script Insertionï¼ ã¯ãã¹ãµã¤ã ã¹ã¯ãªããã£ã³ã°ï¼Cross Site Scripting / XXSï¼ ã¯ãã¹ãµã¤ã ãªã¯ã¨ã¹ã ãã©ã¼ã¸ã§ãªï¼Cross Site Request Forgeries / CSRFï¼ SQLã¤ã³ã¸ã§ã¯ã·ã§ã³ï¼SQL Injâ¦
åå空éã¨ã¯ 2009å¹´ã«PHP5.3.0ã®ãã¼ã¸ã§ã³ãåºããã¨ã§ãPHPã«ãåå空éãã¨ãããã®ãå°å ¥ããã¾ããã ãåå空éãã使ãã¨ãã¯ã©ã¹ãé¢æ°ã«ååãã¤ããéã«ãä»ã®äººãä½ã£ãã©ã¤ãã©ãªã§ä½¿ããã¦ãã¯ã©ã¹ãé¢æ°ã®ååã¨ä¸ç·ã«ãªã£ã¦ãã¾ãï¼æ¥çç¨èªâ¦
PHPã®PDOã¯ã©ã¹ã§ã®ãã¼ã¿ãã¼ã¹æ¥ç¶ã§ã query('SET NAMES utf8'); ã¿ãããªè¨è¿°ãåºã¦ãã¦ããquery('SET NAMES utf8');ãã®å¼æ°ã®æå³ã調ã¹ã¦ã¿ã¾ããã çµè«ã¨ãã¦ãã'SET NAMES utf8'ãã¯SQLã¹ãã¼ãã¡ã³ãï¼SQLæï¼ã§ã ã'SELECT * FROM mst_staffâ¦
PDOï¼PHP Data Objectï¼ã£ã¦ä½ãããã»ãã ãSimpleXMLãã¨ãJSONãã§å ±éãã¼ã¿å½¢å¼ã便å©ã« ï¼2/2ï¼- ï¼ IT ã«ããã¾ãã¨ã ã¨ããããã«ããã¼ã¿ãã¼ã¹ã®ç¨®é¡ãç°ãªã£ãã¨ãã¦ããããããã®PDOãã©ã¤ããç¨æãã¦ããã°ãPDOã³ã¢ã¢ã¸ã¥ã¼ã«ãæä¾ããAPIâ¦
ãªã¼ãã¼ãã¼ã ããã°ã©ãã³ã°è¨èªã«ããã¦é¢æ°ãæ¼ç®åãã¡ã½ããã®åä¸åãåä¸ã®æ¼ç®åè¨å·ã«ã¤ãã¦è¤æ°å®ç¾©ããå©ç¨æã«ããã°ã©ã ã®æèã«å¿ãã¦é¸æãããã¨ã§è¤æ°ã®åä½ãè¡ãããä»çµã¿ã§ããã PHPã«ã¯ããªã¼ãã¼ãã¼ããã¨ããæ©è½ãåå¨ããããâ¦
PHP7ãã使ããã¨ããç¡åã¯ã©ã¹ããªãã¨ã¯ã©ã¹ã®å®ç¾©ããããã¨ãªãã¤ã³ã¹ã¿ã³ã¹ï¼ãªãã¸ã§ã¯ãï¼ãçæã§ããæ©è½ã®ããã§ãã new class㧠ã¤ã³ã¹ã¿ã³ã¹ãçæãã¾ãã â© ç¡åã¯ã©ã¹ã«ã¤ãã¦ã¯ä¸è¨ãµã¤ã㸠ã»PHP 7 ã®ç¡åã¯ã©ã¹ããèããã¯ã©ã¹ã®å¨ãæ¹â¦
ãé 延æ§çæç¸ï¼Late Static Bindingsï¼ãã£ã¦ãã¼ãã³ã°ã¯ãã¤ã³ãã¯ãããããã§ããã qiita.com ⧠ä¸è¨ãµã¤ãæ§ãåããããããã¨ã maeharin.hatenablog.com ⧠ä¸è¨ãµã¤ãæ§ãã詳ãã解説ãã¦ããã¦ã¾ãã éçãªå¼ã³åºãã§èµ·ããåé¡ ãé 延éçæâ¦
PHP5.4以éã§ããã¬ã¤ãï¼traitï¼ãã¨ããããã¿ãå°å ¥ãããããã§ãã æ½è±¡ã¯ã©ã¹ãã¤ã³ã¿ã¼ãã§ã¤ã¹ã¨ãã¦ããã¬ã¤ãã§ãã ãã¬ã¤ãã¯ãå¤éç¶æ¿ã®ã§ããªãPHPã§ãç¶æ¿ãããã¨ãªãã¯ã©ã¹ã«ã¡ã³ãï¼ã¡ã½ãããããããã£ï¼ã追å ã§ããããã¿ã®ããã§ãâ¦
詳ããåããããã説æããã¦ããã¦ããµã¤ããå¤ãã®ã§ããã¯ããä¸è¨ãµã¤ããã覧ã«ãªã£ã¦ããã ããã°æ¸ã話ã§ãããä¸å¿ãèªåãªãã«ã¤ã³ã¿ã¼ãã§ã¤ã¹ï¼interfaceï¼ã¨æ½è±¡ï¼abstractï¼ã¯ã©ã¹ã®éãã調ã¹ã¾ãããï¼ã»ã¼ãä»ãµã¤ãæ§ã®æµç¨ã§ããï¼ â© ã¤â¦
ã¤ã³ã¿ã¼ãã§ã¤ã¹ï¼interfaceï¼ã¨ä¼¼ã¦éãªããã®ããããæ½è±¡ï¼abstractï¼ã¯ã©ã¹ãããã§ãã PHPããã¥ã¢ã«ï¼PHP: ã¯ã©ã¹ã®æ½è±¡å - Manual ï¼ã®èª¬æã«ããã¨ã ã¯ã©ã¹ã®æ½è±¡å PHP 5 ã§ã¯ãæ½è±¡ã¯ã©ã¹ã¨ã¡ã½ãããå°å ¥ããã¾ãããabstractã¨ãã¦å®ç¾©ããâ¦
åã«ãã¿ã¤ããã³ãã£ã³ã°ï¼å宣è¨ï¼ã«ã¤ãã¦èª¿ã¹ãããã¤ã³ã¿ã¼ãã§ã¤ã¹ã¨çµã¿åãããã¨å¹æçã¨ãªã£ã¦ãããã§ãããPHPããã¥ã¢ã«ã«ããã¨ã ã ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¨ã¿ã¤ããã³ãã£ã³ã°ãçµã¿åãããã¨ã ç¹å®ã®ãªãã¸ã§ã¯ãã«ç¹å®ã®ã¡ã½ããããã¾ãæâ¦
ã¿ã¤ããã³ãã£ã³ã°ï¼Type Hintingï¼ ãã©ã¡ã¼ã¿ï¼å¼æ°ï¼ã®åãæå®ã§ãã¾ãã æå®ããåã®ãã¨ãã¿ã¤ããã³ãï¼åãã³ãï¼ã¨ãããã¿ã¤ããã³ãã«ä¸è´ããªãåã®ãã©ã¡ã¼ã¿ï¼å¼æ°ï¼ãåãä»ãã¾ãããï¼åãéãã¨ã¨ã©ã¼ãï¼ PHP5ããå°å ¥ããã¾ããã PHPâ¦
PHPã®ã¢ã¯ã»ã¹æ¨©ã«ã¤ãã¦ãPHPããã¥ã¢ã«ãè¦ã¦ãããããpublic function baz(Test $other)ããªãã¡ã½ãããã¯ã©ã¹ã®ä¸ã§å®ç¾©ããã¦ããã®ã§ãããå¼æ°ã®ä¸èº«ã®æå³ãåãããªãã説æãä¸åãªãã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ããã ã»PHP: ã¢ã¯ã»ã¹æ¨© - Manual ãã®â¦
ã¹ã¿ãã£ãã¯ã¨ã¯ï¼ â static ãã¼ã¯ã¼ãï¼ã¯ã©ã¹ã¨ãªãã¸ã§ã¯ãï¼- PHPããã¥ã¢ã« ãªãã¸ã§ã¯ãæåã¯ãã¯ã©ã¹ãä½ã£ã¦ãããããªãã¸ã§ã¯ãã¨ãã¦å¼ã³åºããã¨ãããã¨ã§ãã ä¸è¬çã«ãnewæ¼ç®åã§ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ï¼ãªãã¸ã§ã¯ãï¼ãä½ã£ã¦ã¯ã©ã¹ã®â¦
PHPã§æ¬ä¼¼å¤æ°$thisã£ã¦ãä½ã®ããã«ããã®ï¼ã¨æã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ããã ä¾ï¼æ¬ä¼¼å¤æ°$this todays_date = date("Y-m-d"); $this->name = $GLOBALS['firstname']; /* çãªã©. . . */ â¦
PHPã§ã¯ãPHP5ããããããããªãã¸ã§ã¯ãæåããã°ã©ãã³ã°è¨èªï¼OOPï¼ããä¿ã«è¨ãããªãã¸ã§ã¯ãæåãã®æ©è½ãå å®ãã¦ãã¾ããã ã»PHP: Hypertext Preprocessor ã»ãªãã¸ã§ã¯ãæåããã°ã©ãã³ã° OOP(object-oriented programming) ç¸äºã«ã¡ãã»ã¼ã¸â¦
Webãã©ã¦ã¶ï¼ãã½ã³ã³ï¼ã«ä¿åããããã® ãã£ãã·ã¥ï¼ Cache ï¼â ä½åº¦ãè¦ãWebãã¼ã¸ãããå ´åã«ã2åç®ä»¥éã®é²è¦§æã®è¡¨ç¤ºã¹ãã¼ããä¸ããããããã¼ã¸å ã®ç»åãã¢ã¤ã³ã³ã¨ãã£ããã¼ã¿ããã½ã³ã³å ã«ä¿åããä»çµã¿ï¼ã¾ãã¯ãã®ä¿åããããã¼ã¿èªä½â¦
ãããæ¼ç®åã®PHPããã¥ã¢ã«ã«ãã説æã§ã¯ã ãããæ¼ç®å ãããæ¼ç®åã¯ãæ´æ°å¤ã®ç¹å®ã®ãããã®è©ä¾¡ãæä½ãè¡ãã¾ãã ãããæ¼ç®å ä¾ åå çµæ $a ï¼ $b ãããç© $a ããã³ $b ã®ä¸¡æ¹ã«ã»ããããã¦ããããããã»ããããã¾ã $a | $b ãããå â¦
ããã¼ãã§ã¯ãPHPãã£ã¦æ¬ã§ãspl_autoload_register( array( $this, 'loadClass' ))ãã£ã¦è¨è¿°ããClassLoader.phpããã¡ã¤ã«ã®ä¸ã§åºã¦ãã¾ããã ããå¼æ°ã®é åï¼ãarray( $this, 'loadClass' )ãï¼ã®æå³ãããåãããªãã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ããã corâ¦
Apacheã®httpd.confãã¡ã¤ã«ã§daemonã¨åºã¦ãã¦ãæ°ã«ãªã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ããã ãã¼ã¢ã³ ã daemon ã ãã¼ã¢ã³ããã»ã¹ ãã¼ã¢ã³ã¨ã¯ãUNIXç³»OSã«ããã¦ãã¡ã¢ãªã«å¸¸é§ãã¦æ§ã ãªãµã¼ãã¹ãæä¾ããã½ããã¦ã§ã¢ã Windows NTã§ã¯åæ§ã®ã½ããã¦ã§ã¢ããâ¦
ãããã»ã¹ãã¨ãã¹ã¬ãããã¨ããã¡ã¤ãã Windows ã Linux ãªã©ã®æ±ç¨ OS ä¸ã®ã¢ããªã±ã¼ã·ã§ã³ã¯ãä¸è¬ã«ããã»ã¹ã¨ãã¦åä½ãã¦ãã¾ãã ããã»ã¹ã¯ãããã°ã©ã ã®å®è¡åä½ã§ãã ããã»ã¹ã¯ã1ã¤ä»¥ä¸ã®ã¹ã¬ããã¨ããã¡ã¤ã«ããã¼ãã¡ã¢ãªãªã©ã®ãªã½ã¼â¦
XAMPPã®Apache( Apache HTTP Server )ãä¹ ã ã«Startã§ããªããªã£ã¦ãç¾ç¶ã®XAMPPãç ´æ£ããæ°è¦ã«XAMPPãã¤ã³ã¹ãã¼ã«ãããã¨ãã¦ãhtdocsãã©ã«ããé¿é£ããã¦ããã®ã§ãããXAMPPã«ã¯MYSQLãå«ã¾ãã¦ãããã¨ãªã©ãã£ãã失念ãã¦ããããããã¼ã¿ãã¼ã¹â¦