ããã«ããã¯ã¨åãåã ããã¼ã¿ãªãããã¨ã¸ã½ã³ã§ãã ã¿ãªããã¯ãPHPã§æ¥½ããããã°ã©ã ãã¦ãã¾ããï¼ åã¯å æ¥ãã¨ããæ©è½ã§ãããã©ã¼ãã³ã¹ãèããæªããå®ç¨ã«èããããªãç®æãçºè¦ãã¾ãã¦ããã®ç®æã®ä¿®æ£ã«åãçµãã§ãã¾ããããã®æã«å¾ãç¥è¦ããæ¬è¨äºã§æ«é²ãããã¨èãã¾ããã ããå ¨ä½ã®ä½æ¥å·¥ç¨ã®ä¸ã§ãç¹å®ã®å·¥ç¨ãé ãäºã«ãããå ¨ä½ã«å½±é¿ãåã¼ãã¦ãã¾ãäºããããã«ï¼é¦ï¼ãç´°ãäºã§æ°´ã®éããæªããªãäºã«ãªãããã¦ãããã«ããã¯ã¨å¼ã³ã¾ãã ããã«ããã¯ã®ç¹å® ããã«ããã¯ã解æ¶ããæé ã¯ä»¥ä¸ã®éãã§ãã ããã«ããã¯ã¨ãªã£ã¦ããç®æãç¹å®ãã 該å½ç®æãä¿®æ£ãã ä¿®æ£å¾ã«ã©ãã ãå¦çé度ãæ¹åãããã確èªãã æå¾ ããã¦ããå ´åã¯ãOKãããã§ãªããã°ãã1ãã«æ»ã£ã¦å調æ»ã ä¸çªãã£ã¦ã¯ãããªãäºã¯ãã2ãããåããããäºã§ããã¯ããæ°æã¡ããã£ã¨ãããã¦ãã¾ãã¯ããã«ããã¯ã¨
ã¡ãªã¿ã« E_ALL & ~E_NOTICE ã®å¤ã 6135 ã«ãªãçç±ã¯ E_ALL ã®å¤ã 6143ãE_NOTICE ã®å¤ã 8 ãªã®ã§ 6143-8=6135 ã«ãªãã¾ããï¼ã¾ã㯠E_NOTICE 㨠E_STRICT 以å¤ã®å¤ã足ããæ°ã 6135 ã«ãªãã¾ãã ç§ã¯éçºä¸ã¯ E_NOTICE ã表示ããããã«ãã¦ãã¾ãããçµæ§è¡¨ç¤ºãããªã人ãå¤ãããã§äººã®ã³ã¼ããä¿®æ£ããã¨ããªã© Notice ã¨ã©ã¼ãåºã¦å°ããã¨ãããã¾ããE_NOTICE ã表示ããããã«ãã¦ããã¨æªå®ç¾©ã®å¤æ°ãªã©ãã°ã®å ã«ãªãããããã®ãæãã¦ãããã®ã§ãå§ãã§ãã ã¾ããéçºçµäºãã¦æ¬çªéç¨ããã¨ãã«ã¯ãã©ã¦ã¶ã«ã¨ã©ã¼ãåºåããªãããã« error_reporting(0); ãè¨å®ãã¦ãããã¨ãå¿ããã«ï¼ ãã®éã PHP ã®ã¨ã©ã¼ã¯ã¨ã©ã¼ãã°ã«è¨é²ãããããã«ãã¦ãããªãã®ãå¿ããã«ã é¢é£ãã
# åèè³æ - https://speakerdeck.com/hanhan1978/purohuairawoshi-tutaphpapurikesiyongai-shan-falsekan-suo - https://speakerdeck.com/hanhan1978/web-applicatâ¦
æ¨æ¥ã®æ¥è¨ã®ç¶ãã§ãAjaxã«åºæãªã»ãã¥ãªãã£åé¡ã«ã¤ãã¦æ¤è¨ãã¾ããä»åã¯JSONçã®æ³å®å¤èªã¿åºãã«ããæ»æã§ãããããæ»æææ³ã¯æ¬æ¥ãã©ã¦ã¶å´ã§å¯¾å¿ãã¹ããã®ã§ããããå¾ãWebã¢ããªã±ã¼ã·ã§ã³å´ã§å¯¾å¿ããä¸ã§ãã¾ã å®çªã¨ãªã対çããªãããã«æãã¾ãããã®ãããè¤æ°ã®åè£ã示ãããã¨ã§è°è«ã®ãã£ããã«ãããã¨æãã¾ãã ã¾ããä½ããªããåºç¤ããå¦ã¶PHPã«ããWebã¢ããªã±ã¼ã·ã§ã³å ¥éXAMPP/jQuery/HTML5ã§ä½ãã¤ãããã®WeãããAjaxãå©ç¨ããã¢ããªã±ã¼ã·ã§ã³ã®æ¦å¿µå³ãå¼ç¨ãã¾ãï¼åæ¸P20ã®å³1-23ï¼ã ååãåã åã¯ã(5)ã®HTTPã¬ã¹ãã³ã¹ã®åå¾ã§ãJSONçã®ãã¼ã¿ä½æï¼ã¨ã³ã³ã¼ãï¼ã«èµ·å ããevalã¤ã³ã¸ã§ã¯ã·ã§ã³ãã(5)ã®ã¬ã¹ãã³ã¹ãåãåã£ãå¾ã®HTMLã¬ã³ããªã³ã°ã®éã®XSSã«ã¤ãã¦èª¬æãã¾ããã ããããåé¡ã¯ããã ãã§ã¯ããã¾ãããæ£å¸¸
ã¾ããã ãã«ããµã¤ãã®WordPressã®å ´åãããã©ã«ãã®ãã¼ã¸å æ¤ç´¢ã ã¨ä¸ã¤ã®ããã°ããæ¤ç´¢å¯¾è±¡ã«å«ã¾ãã¾ããã ããã©ã«ãã®ãã¼ã¸å æ¤ç´¢ã¯formã¿ã°ã®actionå±æ§ã«æå®ããã¦ããURLã®ããã°ãæ¤ç´¢å¯¾è±¡ã¨ãªãã¾ãã ããããWordPressããã«ããµã¤ãã«ãã¦ããå ´åã¯å ¨ã¦ã®ããã°ãæ¤ç´¢å¯¾è±¡ã«å«ããããã¨ãçµæ§ããã¯ãã§ãã ä»åã¯ãã«ããµã¤ãã®å ¨ããã°ãæ¤ç´¢å¯¾è±¡ã«å«ããæ¹æ³ãç´¹ä»ãã¾ãã search.php(æ¤ç´¢çµæãã¼ã¸)ã«ã³ã¼ãã追å ããæ¹æ³ã§ãã å ¨ããã°ãæ¤ç´¢å¯¾è±¡ã«ããããsearch.phpãç·¨é search.phpã®ã«ã¼ãé¨åãä¸è¨ã®ããã«ä¿®æ£ãã¾ãã <div>æ¤ç´¢ãã¼ã¯ã¼ã '<?php echo get_search_query(); ?>'</div> <?php $query_string=esc_attr($query_string); $bl
WordPressã®ã³ã¢éçºãã¼ã ãWordPressãWebãã©ã¦ã¶ã§å®è¡ãããClient-side WebAssembly WordPressããéçºä¸ WordPressã®ã³ã¢éçºãã¼ã ã¯ãPHPãµã¼ããWebAssemblyåãããã¨ãªã©ã«ãããWordPressãWebãã©ã¦ã¶ä¸ã§å®è¡ãããClient-side WebAssembly WordPressãï¼ä»¥ä¸WASM WordPressï¼ã®éçºä¸ã§ãããã¨ãæããã«ãã¾ãããã¢ã¼ãªã¼çã®ãã¢ãå ¬éãã¦ãã¾ãã WordPressã®WebAssemblyåã¯ãå æVMwareãå®é¨çãªåãçµã¿ã¨ãã¦ãã¢ãå ¬éãã¦ãã¾ããã åèï¼PHPã¨SQLiteãWebAssemblyåããWebãã©ã¦ã¶ä¸ã§WordPressãå®è¡å¯è½ã«ãããã¢ãVMwareãå ¬é ãããä»åã¯WordPressã®ã³ã¢éçºãã¼ã èªèº«ãWebAssemb
CPIãµã¼ãã§ã¢ãããã¼ãã®æ大ãµã¤ãºãå¤æ´ããéã«ããã£ããã¨ã 2021.04.28 PHP WordPress CPIãµã¼ãã¯php.iniãããã®ã§ãããã« ;ã¹ã¯ãªããã確ä¿ã§ããæ大ã¡ã¢ãªã®æå® memory_limit = 128M ;POSTãã¼ã¿ã«è¨±å¯ãããæ大ãµã¤ãº ;ãã¡ã¤ã«ã¢ãããã¼ãã«ãå½±é¿ãã post_max_size = 8M ;ã¢ãããã¼ãããããã¡ã¤ã«ã®æ大ãµã¤ãº upload_max_filesize = 2M ;åæã«ã¢ãããã¼ãã§ãããã¡ã¤ã«ã®æå¤§æ° max_file_uploads = 20 ãæ¸ãã°ããã®ã§æ¥½åãããã£ã¦æã£ããã©ãããã£ãã php.iniãã¡ã¤ã«ãã©ãã«ãèªã¿è¾¼ã¾ãã¦ãªãæãããã¦ãphpinfoã§ç¢ºèªããã¨ã /usr/home/ã¦ã¼ã¶ã¼å/html/php.ini ã¨è¡¨ç¤ºããããããèªã¿è¾¼ã¾ãã¦ããã大ä¸å¤«ã¨æã£ãããã
Ajax ãã PHP ãå¼ã³åºãã¨ãã æ®éã®æ¹æ³ã ã¨ï¼åã½ã£ããã®ã¬ã¹ãã³ã¹ããåãåãã¾ããã ã§ã次ã¿ãããªå ´åããªã¢ã«ã¿ã¤ã ã«ã¬ã¹ãã³ã¹ãåãåãããã§ãã ãã¼ã¿ã常ã«ç»é¢ä¸ã§æ´æ°ãããå ´å Twitterã¿ã¤ã ã©ã¤ã³çãªã®ãä½ãå ´å ã¨ã«ãããªã¢ã«ã¿ã¤ã éä¿¡ãããå ´å åãããWebã¢ããªãä½ã£ã¦ãã¦ããªã¢ã«ã¿ã¤ã ã¬ã¹ãã³ã¹ãå¿ è¦ã§ããã ããã§ã¯èªåã®è¨æ¶ã®æ´çãå ¼ãã PHPã§ã¹ããªã¼ã åºåã㦠Ajax ã§ãªã¢ã«ã¿ã¤ã æ´æ°ããæ¹æ³ ãç´¹ä»ãã¾ãã ã¹ããªã¼ã åºåã®åºæ¬ããç¥ã£ã¦ããã°ãæå¤ã¨ç°¡åã«ã§ãã¾ãã æé ï¼ï¼PHP + Ajax ã§ãªã¢ã«ã¿ã¤ã æ´æ°ããåºæ¬ã®æµã ãªã¢ã«ã¿ã¤ã æ´æ°ãããå¦çãããã¯ï¼ã¤ã®é¨åã«åãããã¾ãã ãµã¼ãã¼å´ï¼ãã¼ã¿ãæ´æ°ããï¼ ãã©ã¦ã¶å´ï¼ãã¼ã¿ãåãåãï¼ ãµã¼ãã¼å´ã§ã¯ PHP ã使ã£ã¦ã¹ããªã¼ã åºåã ãã©ã¦ã¶å´ã§ã¯ Ajax
11/15ã«éå¬ããããã¡ãã®åå¼·ä¼ã«åå ãããã¾ããï¼ ãããã¬ã§WordPressæ¬ä½ããã©ã°ã¤ã³ã®èå¼±æ§ã追ãããã¦ã¿ãã - connpass ãã¡ãã®åå¼·ä¼ã¯ããWordPressæ¬ä½ã¨ãã©ã°ã¤ã³ã®èå¼±æ§ããããã¬ã§è¿½è·¡ãããã¨ã«ãããèå¼±æ§ã®ä¸èº«ã«ã¤ãã¦è©³ãã追跡ããç解ãæ·±ãããã¨ããå 容ã®ãã®ã§ããããªãã¨ãã®å¾³ä¸¸æµ©ãããè¬å¸«ãããã¦ãã¾ãï¼ ç§å人ã¨ãã¦ã¯ãä»äºã¨ãããåå趣å³ã§ããããèå¼±æ§ã®æ¤è¨¼ããã¦ãããä»åã®åå¼·ä¼ã¯ã¾ãã«èªåã®èå³åéã«ãã³ãã·ã£ãªå 容ã ã£ãã®ã§ãé常ã«æ¥½ããã§åå ããã¦ããã ãã¾ããï½ ç§ã¯ãã¡ãã®åå¼·ä¼ã«ããã°æ ã¨ãã¦åå ãããã¾ããã®ã§ãåå¼·ä¼ã®å 容ã«ã¤ãã¦æ¬ããã°ã«ã¦ã¬ãã¼ããããã¾ãã åæ対象ã®èå¼±æ§ã«ã¤ã㦠ä»ååæããé¡æã¨ãªã£ãèå¼±æ§ã¯ä»¥ä¸ã®äºã¤ã§ãã ãªããäºã¤ã®èå¼±æ§ã¨ã徳丸ããã詳細ãªè§£èª¬è¨äºãããã°ã«ã¦å ¬éããã¦ããã¾ã
â äºè±¡ 大ããªæ·»ä»ãã¡ã¤ã«ãéããã â upload_max_filesize ã大ããããã (10M) â 試ãã« POST 㧠10Må¼±ã®ãã¡ã¤ã«ãéã£ã¦ã¿ãã â ç¹ã«ã¨ã©ã¼ãåºãããã $_POST ã空ã«ãªã£ã¦ãã¾ãï¼ â åå ã¨å¯¾å¿ post_max_size ⧠upload_max_filesize ã§ãªãã¨ãããªãã®ã«ããã©ã«ãã® 8M ã®ã¾ã¾ã ã£ãã ãã¡ãã 10M ã«å¤æ´ããã¨ããã$_POST ã®ä¸èº«ãåããããã«ãªã£ãã â ããã¥ã¢ã« post_max_size upload_max_filesize memory_limit post_max_size ã®é ã«ç´°ãã説æãæ¸ããã¦ããã memory_limit ⧠post_max_size ⧠upload_max_filesize ã®ãµã¤ãºã§è¨å®ããªãã¨ãããªãã POSTãã¼ã¿ã®å¤§ããããpost_m
Amazon APIã®ä»æ§ãå¤ãã2019å¹´12æ1æ¥ããæ°ãããã¼ã¸ã§ã³5.0ã®PA-APIï¼Product Advertising APIï¼ã¨ç§»è¡ãã¾ãã ããã«ä¼´ãã2019å¹´11æ30æ¥ã¾ã§ã«ç§»è¡ãå®äºãã¦ããªãå ´åã¯ç¾å¨ã®PA-APIã¯ä½¿ããªããªãã¨ãããã¨ã§ã⦠Product Advertising API ï¼ä»¥ä¸PA-APIï¼ã®æ°ãããã¼ã¸ã§ã³ï¼PA-API v5)ã«ã¤ãã¦ãç¥ãããããã¾ãã PA-API v5ã¸ã®ç§»è¡ã2019å¹´11æ30æ¥ã¾ã§ã«å®æ½ããªãã£ãå ´åãç¾å¨ã®PA-APIã¯ãå©ç¨ãããã ããªããªãã¾ãã å¼ç¨ ï¼ PA-API v5移è¡ã®ãæ¡å â» èªåã¯ãAmazon APIãã¨å¼ãã§ãã¾ããããæ£ç¢ºã«ã¯PA-APIãªã®ã§ãä»å¾ã¯PA-APIã«çµ±ä¸ãã¾ã å¤æ´æ¹æ³ã¨ãã¦ã¯ã以ä¸ã®2ã¹ãããã§ãã ã¹ããã1: PA-APIã®ã¢ã¯ã»ã¹ãã¼ã¯ã¢ã½ã·ã¨ã¤ãã»ã»ã³
ã¾ã PHPMailer ã ããã対å¿ã§ããªãã®ã§ããã©ãã æ¨ä»ã®æºå¸¯é»è©±ã«ã¡ã¼ã«ãéããã¨ãããªããSPFã¬ã³ã¼ãã使ã£ãéä¿¡ãã¡ã¤ã³èªè¨¼ã«å¯¾å¿å¿ é ã®ãããªã®ã§ä¸å¿å¯¾å¿ãã¦ã¿ã¾ããã ã¾ã㯠SPF ã¨ã¯ãªãããã¨ã 1. éä¿¡å 㯠SPFã¬ã³ã¼ã ã£ã¦ããã®ãDNSãµã¼ãã«ç»é²ï¼å ¬éï¼ãã¦ããã 2. åä¿¡è ã¯éä¿¡å ã®FROMã¢ãã¬ã¹ãã DNSãåç §ãããSPFã¬ã³ã¼ãããå ¬éããã¦ãããã©ãããã§ãã¯ã 3. SPFã¬ã³ã¼ãã«ã¯ IPã¢ãã¬ã¹çã®æ å ±ãå«ãã®ã§ãããªããã¾ãã¡ã¼ã«ãã®å¤å®çãå®æ½ãã¦æ¨ã¦ããç ´æ£ãããã ã¨ãã¾ããããªæãã§ç解ãã¾ãããã©ãä¸ããã¨ãé ãããã¼ãªæããã¨æãã¾ãã ã§æ¬é¡ã§ãããPHPMailer ã¨ããã©ã¤ãã©ãªã使ãã¨ã»ãã¨ã«ç°¡åã« PHPããã¡ã¼ã«ãéä¿¡ã§ãã¾ããsendmail ã ã¨ã phpã®mail()é¢æ°ã ã¨ãã¾ã£ããæèãã¾ããã
WordPressã§æåãªãã©ã°ã¤ã³ã¨ãã¦ãé¢é£è¨äºã表示ããããªããYet Another Related Posts Plugin(YARPP)ãã人æ°è¨äºã表示ããããªããwordpress popular postsããããç¥ããã¦ããã ã ãã©é¢é£è¨äºã人æ°æ稿ã¯ã³ã¼ããã³ããããã ãã§ããã©ã°ã¤ã³ãªãã§ç°¡åã«å®è£ ãããã¨ãã§ããã åå¥è¨äºå ã«ãã©ã°ã¤ã³ãªãã§ãµã ãã¤ã«ä»ãé¢é£è¨äºã表示ãããåã«ãã´ãªã¼ã®è¨äºãåãåºãã³ã¼ãã åå¥è¨äºãã¦ã£ã¸ã§ããã¨ãªã¢ãªã©ãé¢é£è¨äºã表示ããããä»»æã®ãã³ãã¬ã¼ãå ã«ä»¥ä¸ã®ã³ã¼ããã³ããã <!-- é¢é£è¨äº --> <?php if( has_category() ) { $cats = get_the_category(); $catkwds = array(); foreach($cats as $cat) { $catkwds[]
ãããã æ代é ãã®æ å ±ãã¦ã§ãä¸ã«ããµãã¦ããããããªæ å ±ãè¦ãPHPåå¿è ã¯æ¸æã£ã¦ãã¾ãã ãããããã¦ãã¾ããææ³ãã¾ããã³ã¼ããåºã¾ã£ã¦ãã¾ãã ãããªã®ã¯ãããããããPHP: The Right Way ã¯æ°è»½ã«èªããã¯ã¤ãã¯ãªãã¡ã¬ã³ã¹ã ãPHPã®ä¸è¬çãªã³ã¼ãã£ã³ã°è¦ç´ã ã¦ã§ãä¸ã®ããã§ãããã¥ã¼ããªã¢ã«ã¸ã®ãªã³ã¯ãããã¦ç¾æç¹ã§ã®ãã¹ããã©ã¯ãã£ã¹ã ã¨å·çè ãèãã¦ãããã¨ãã¾ã¨ããã 大äºãªã®ã¯ã PHPã使ãããã®æ£å¼ãªãä½æ³ãªã©åå¨ããªã ã£ã¦ãã¨ã ãã®ãµã¤ãã®çãã¯ãã¯ãã㦠PHP ã使ããã¨ã«ãªã£ãéçºè ã«ãããããªãããã¯ãç´¹ä»ãããã¨ã çµé¨è±å¯ãªããã®äººã«ã¨ã£ã¦ããããã¾ã§æ·±ãèãããã¨ãªã使ã£ã¦ããå 容ã«ã¤ãã¦ãæ°é®®ãªè¦æ¹ãä¼ããããã ããã ãã®ãµã¤ãã¯ã決ãã¦ãã©ã®ãã¼ã«ã使ãã°ããã®ãããæãããã®ãããªãã ããã¤ãã®é¸æè¢ã示ãã¦ãããã
ï¼æ稿æ¥ï¼2017å¹´07æ28æ¥ï¼ æ稿ãå¢ãã¦ããã¨ç®çã®ãã¼ã¸ãæ¢ãã®ãã ãã ãå°é£ã«ãªã£ã¦ããã¾ããããã§ãã«ãã´ãªã¼ãã¿ã°ãçµåãã¦çµãè¾¼ã¿æ¤ç´¢ã§ããããã«ããæ¹æ³ãç´¹ä»ãã¾ãã å®æã¤ã¡ã¼ã¸ã¯ã»ã¬ã¯ã¿ã¼ãºã®è²·åå®ç¸¾ã®çµãè¾¼ã¿æ¤ç´¢ã§ãã ã¸ã£ã³ã«ã¯ã«ãã´ãªã¼ããã©ã³ãã¯ã¿ã°ã«ãªã£ã¦ãã¦ãããããçµåãã¦æ¤ç´¢ã§ããããã«ãªã£ã¦ãã¾ãã åºæ¬ã®æ¤ç´¢ãã©ã¼ã ãã¡ãã®æ¤ç´¢ãã©ã¼ã ããã¼ã¹ã«ããã£ã¦ããã¾ãã <form method="get" action="<?php bloginfo('url'); ?>"> <input name="s" id="s" type="text" placeholder="ãã¼ã¯ã¼ããå ¥å"> <input id="submit" type="submit" value="æ¤ç´¢"> <input id="reset" type="reset" val
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}