Web APIãDBã®ãã¼ã¿åå¾ãªã©ã§å¦çã«æéãæããå ´åãåå¾ãããã¼ã¿ãä¸å®æéãã£ãã·ã¥ãã¦ããã¦ããããå©ç¨ãããã¨æãã¨ããããã¾ãã ããããPEAR::Cache_LiteãZend_Cacheãªã©ã®ã©ã¤ãã©ãªãæã¡åºãã®ã¯å¤§ãããªæ°ããã¾ãã ããã§ã40è¡ã»ã©ã®çãã³ã¼ãã§ããã¼ã¿ããã£ãã·ã¥ããè¶ ã·ã³ãã«ãªã¯ã©ã¹ãä½æãã¾ããã 使ãæ¹ã¯PEAR::Cache_Liteã¨ã»ã¨ãã©åãã§ãã ã½ã¼ã¹ã³ã¼ã XMLãã¼ã¿ããã£ãã·ã¥ãããµã³ãã«ããã°ã©ã ã§ãã Cache.php <?php class Cache { // ãã£ãã·ã¥çåæé private $_lifeTime; // ã³ã³ã¹ãã©ã¯ã¿ public function __construct($lifeTime = LIFE_TIME) { $this->_lifeTime = $lifeTime;
Updated 2015.12.07 / Published 2015.04.04 Firefox OSãWindows Phoneã®ç»å ´ã§ã¦ã¼ã¶ã¨ã¼ã¸ã§ã³ãæ å ±ã«ä¾åãã¦å¦çãè¡ã£ã¦ããé¨åãç¸æ¬¡ãã§è¦ç´ããè¿«ããããã¨ã«ãªãã¾ãã®ã§ã2015å¹´çJavaScriptã¦ã¼ã¶ã¨ã¼ã¸ã§ã³ãå¤å¥ã»å¤å®ã¨å趣æ¨ã§PHPã«ã¦ã¹ãã¼ããã©ã³ã»ã¿ãã¬ããã¾ããã®ã¦ã¼ã¶ã¨ã¼ã¸ã§ã³ããå¤å¥ã»å¤å®ãã¦åå²å¦çãè¡ãæé ããç´¹ä»ãã¾ãã <?php class UserAgent{ private $ua; private $device; public function set(){ $this->ua = mb_strtolower($_SERVER['HTTP_USER_AGENT']); if(strpos($this->ua,'iphone') !== false){ $this->device =
PHPã«ã¯ãã£ã¬ã¯ããªãåå¾ããããã®å¤æ°ãå®æ°ãç¨æããã¦ãã¾ãããã©ãã使ãã°ããã®ãåãããªããªãã¾ãããï¼ æ¦è¦ ä»åã¯ãexample.comãã¨ãããµã¤ããä¾ã«ããã£ã¬ã¯ããªåãåå¾ããå¤æ°ãå®æ°ã®å¤ã調æ»ãã¾ãããå®éã®ä½¿ç¨ä¾ãç¨æãã¦ããã¾ãããªããéä¸ã«åºã¦ãã dirname() ã¯ãå¼æ°ã«æå®ãããã¡ã¤ã«ã»ãã£ã¬ã¯ããªã¸ã®ãã¹ã«å¯¾ãã親ãã£ã¬ã¯ããªã®ãã¹ãè¿ãé¢æ°ã§ãã ç°å¢ ã¢ã¯ã»ã¹å http://example.com/ http://example.com/knighthawk/ http://example.com/knighthawk/pavehawk.php ããã¥ã¡ã³ãã«ã¼ã /home/mcgee/www/example/public_html/ ï¼/knighthawk/ã«æ·±ãæå³ã¯ããã¾ãããåãªããã£ã¬ã¯ããªåã§ããï¼ ä¸è¦§ ã¢ã¯ã»ã¹ããURL
ãããããã¯ä¼æ¥ã§ä½¿ãããã§ããï¼ ä¼æ¥ã«ãã£ã¦ã¯å¤é¨ã«ã½ã¼ã¹ã³ã¼ããé ããããªããããèªç¤¾ã§Gitãµã¼ããæ§ãã¦ããã¨ãããå¤ãã§ããããããããããªãã¨ç®¡çç»é¢ã欲ãããªãã¾ããGitHubã®ç®¡çç»é¢ã¯åªç§ã§ããããã£ãWebãã©ã¦ã¶ä¸ã§ãªãã¸ããªã®æ å ±ãè¦ããã¨æãã¯ãã§ãã ããã§ä½¿ã£ã¦ã¿ã¦æ¬²ããã®ãGitonomyã§ãããã¶ã¤ã³ã®æ ¼å¥½ãããGitãªãã¸ããªããã¼ã¸ã£ã§ãã Gitonomyã®ä½¿ãæ¹ Gitonomyã¯PHP + Symfonyã®çµã¿åããã§ä½ããã¦ãã¦ãWebãã©ã¦ã¶ä¸ã§Gitãªãã¸ããªã®æä½ãä¸éãã§ããããã«ãªã£ã¦ãã¾ããã¦ã¼ã¶ã¯ããã¸ã§ã¯ãåä½ã«ã°ã«ã¼ãã«å ¥ããããã§æ¨©é管çãããä»çµã¿ã§ãã ã½ã¼ã·ã£ã«æ©è½ã¯ããã¾ããããä¼æ¥ã¦ã¼ã¹ã§ããã°ååã§ã¯ãªãã§ããããã社å ã§Gitãµã¼ããç«ã¦ã¦ããå ´åã¯ãã²å°å ¥ãæ¤è¨ãã¦ã¿ã¦ãã ããã Gitonomyã¯PHP
ãã®ãã¼ã¸ã«ã¤ãã¦ã®èª¬æã»æ³¨æãªã© PHP ã® mbstring æ¡å¼µã¢ã¸ã¥ã¼ã«ã«ã¤ãã¦èª¿ã¹ã¦ã¿ã¾ãããmbstring æ¡å¼µã¢ã¸ã¥ã¼ã«ã¯ãPHP ããã¥ã¢ã« : ãã«ããã¤ãæååé¢æ° (mbstring) ã«ãæ¸ããã¦ããªãæ©è½ãå¶ç´ãå¤ãããã¾ãããã®ããããã½ã¼ã¹ã³ã¼ãã確èªããªããã¾ã¨ãã¦ã¿ã¾ããã æ´æ°å 容ã«ã¤ãã¦ã¯ãæ´æ°å±¥æ´ãåç §ãã¦ãã ããã ã½ã¼ã¹ã³ã¼ãã®ç¢ºèªã¯ä¸»ã« PHP 5.2.5 ã PHP 5.3.0 ã§è¡ãã¾ãããPHP 4.x ã«å¯¾ããè¨è¿°ãããã¾ãããç´°ãããã¼ã¸ã§ã³çã«ã¤ãã¦ã¯ååã«ç¢ºèªã§ãã¦ããªããã®ãããã¾ãããã®ãã¼ã¸ãèªãã§ãééãã誤åãè±åãªã©ããè¦ã¤ãã¾ããããã¯ã¦ãªã®æ¥è¨ãã¾ãã¯ãã¡ã¼ã«ãªã©ã§æãã¦ãã ããã mbstring ã使ç¨ããæ¹æ³ éçã©ã¤ãã©ãªã¨ãã¦çµã¿è¾¼ãæ¹æ³ å ±æã©ã¤ãã©ãªã¨ãã¦ä½¿ç¨ããæ¹æ³ Windows ç°å¢ã®å ´å P
TweetPocket PHPã³ã¼ãæé©åé«éåTIPSã¾ã¨ãPHPæé©å ãã¹ããã©ã¯ãã£ã¹ï¼ åèurlï¼ http://d.hatena.ne.jp/koto2/20080518/1211070116 01. static ã«ã§ããã¡ã½ãã㯠static ã¨ãã¦å®£è¨ããããï¼4åéãï¼ 02. echo ã®æ¹ã print ããéãã 03. echo âæâ,âåâ; ï¼ã«ã³ãåºåãï¼ã®æ¹ããâæâ.âåâ ï¼ãããé£çµï¼ããéãã 04. ã«ã¼ãã®æ大å¤ã¯ãã«ã¼ããå ãã§ã¯ãªããåãã«ã»ãããã¦ãããã 05. 大ããé åã®ãããªå¤æ°ã¯ unset() ãã¦ã¡ã¢ãªã解æ¾ãããã 06. ãã¸ãã¯ã¡ã½ããï¼ä¾ï¼ __get, __set, __autoloadï¼ã¯ä½¿ç¨ãé¿ãããã 07. require_once ã¯ãã¤ã³ã¹ããªã®ã§ãã 08. include ã require
åç½®ãããããé·ãè¨äºã§ããæéç¡ã人ã¯ãèªã¾ãªããå¾ãããèªãã§ãã ããã æ¨æ¥ãæ¸ãããã§ããã©ããµããã¨ãã£ï¼ã§pjaxã¨ããã®ãå©ç¨ãã¦ãã¾ãã ã§ããã®éãPHPã§pjaxãã«ã¯ã©ããããããããªã¼ãã¨æãã°ã°ã£ãããåºãªãã£ããâ¦ããããããããã¨ãç°¡åããã¦ã¾ã¨ããã¾ã§ããããï¼ãã£ã¦ãã¨ããç¥ããªããã©ãã¾ã¨ãã¦ãããå¾ã§å¦æ ¡ã§ã使ãäºå®ãªã®ã§ã pjax? ã¾ããajaxãããã¾ããç¥ããªãã£ããã°ã°ã£ã¦ãã ãããåä¸ãã¡ã¤ã³ãªãéåæã«éä¿¡ãã¦ãããã¢ã¬ã§ãã ããã¦ããpushStateãã¨ãããã®ãããã¾ãã HTML5ã§ãã5.4 Session history and navigationãã¨ããAPIã追å ããããã®ä¸ã«ãThe History interface - pushStateãã¨ãããã®ããããã§ãããããã§ãã ãã®ãpushStateãã¯
mPDFã¯ãã¼ã¸ã§ã³5.1以ä¸ã¯ ããã°ã©ã ã½ã¼ã¹ãããããªãã¨æ¥æ¬èªè¡¨ç¤ºåºæ¥ãªãããã§ã ãã¦ã³ãã¼ãããã®ã¯ç¾å¨ã®ææ°ãã¼ã¸ã§ã³ããã¼ã¸ã§ã³5.4ã 以ä¸ããããæ¹ 1.ãmpdf.phpãéã 2.ã1143è¡ç®ããå§ã¾ã以ä¸ã®è¡ãã³ã¡ã³ãã¢ã¦ã //if (preg_match('/([\-+])aCJK/i',$mode, $m)) { // preg_replace('/([\-+])aCJK/i','',$mode); // if ($m[1]=='+') { $this->useAdobeCJK = true; } // else { $this->useAdobeCJK = false; } //}3.ãã³ã¡ã³ãã¢ã¦ãããè¡ã®ä¸ã«ä»¥ä¸ä¸è¡ãå ãã ãã£ã¤ãã¼ãºãã¸ã£ããã¼ãºãã³ãªã¢ã³ï¼CJKï¼ãå¼·å¶çã«trueã« $this->useAdobeCJK = true; 4.
mPDF5.4ã§æ¥æ¬èªã使ãmPDF 5.4ã§æ¥æ¬èªã使ãæ¹æ³ã¨ã¡ãã£ã¨ãã注æç¹ã æ¥æ¬èªãå«ãè¦ç´ ã«ã¯lang=âjaâå±æ§ãã¤ããã ã ãããã®å ´åï¼<body lang=âjaâ>ã¨ããã°OK mPDFã§æ¥æ¬èªãã©ã³ãã使ãããã®è¨å®ãããã æ¥æ¬èªãã©ã³ãã®è¨å®ã¯âã®ã©ããï¼ã¤ããã°OKã mPDFã®ã³ã³ãã£ã°ãå¤æ´ï¼$this->useAdobeCJK = trueï¼ mPDFãªãã¸ã§ã¯ãä½æå¾ã«$mpdf->useAdobeCJK = true;ã¨ãã æ¥æ¬èªç¨ttfãã©ã³ããè¨å® âã¯2.ã§ãã£ã¦ãã require_once '../../php_libs/MPDF54/mpdf.php'; $html = file_get_contents("http://www.yahoo.co.jp"); $html = preg_replace('/(<body.*?)>/',
PHPã«ã³ãã¡ã¬ã³ã¹é¢è¥¿2012ã§ä½¿ç¨ããã¹ã©ã¤ãã§ããå®å ¨ãªå 容ã¯ä¸åæ²¢ã§éå¬ããéã®ã¹ã©ã¤ãã¨åç»ã御覧ãã ãããRead less
帳票ãªã©ã HTML ã表示ããããã PDF ã«ããããã¨ã¯ããããã¾ããFPDF ãªã©ã使ãã° PHP 㧠PDF ãçæãããã¨ãã§ãã¾ãããçµæ§é¢åã§ããããã mPDF ã使ããã¨ã«ãã PHP ã§ç°¡åã« HTML ãã PDF ãçæãããã¨ãå¯è½ã§ãã ã¤ã³ã¹ãã¼ã« mPDF ãã¤ã³ã¹ãã¼ã«ãã¾ããmPDF ã®ãµã¤ããã zip ãã¡ã¤ã«ããã¦ã³ãã¼ããã解åãã¾ããããã PHP ããã¤ã³ã¯ã«ã¼ãã§ãããã£ã¬ã¯ããªã¸ã¢ãããã¼ããã¾ããä»å㯠mpdf ã¨ãããã£ã¬ã¯ããªãä½ããã®ä¸ã«ã¢ãããã¼ããã¾ããã ã¢ãããã¼ãå¾ãtmp ãã£ã¬ã¯ããªã¨ graph_cache ãã£ã¬ã¯ããªã«æ¸ãè¾¼ã¿æ¨©éãä¸ãã¦ããã¾ãã mPDF 㧠PDF ãçæãã 使ãæ¹ã¯ç°¡åã§ããHTML ãä¸ãã¦ãåºåããã ãã§ãã使ãæ¹ã®ä¾ã¯ä»¥ä¸ã®ããã«ãªãã¾ããä¾ã¨ã㦠Yahoo!ã¸ã£ãã³ã®ãã
Warning: opendir(/dat/www/domains/www.monzen.org/sites/refdoc/tcpdf/latest/fonts.org) [function.opendir]: failed to open dir: No such file or directory in /dat/www/domains/www.monzen.org/sites/refdoc/tcpdf/index.phl on line 358 Warning: readdir() expects parameter 1 to be resource, boolean given in /dat/www/domains/www.monzen.org/sites/refdoc/tcpdf/index.phl on line 360 Warning: closedir() expects
ã·ã¹ãã ã§å ¥åãããã¼ã¿ã帳票ã¨ãã¦å°å·ãããã¨ããè¦æã¯ã©ãã«ã§ãããã¾ããããããå®ç¾ããããã®æ¹æ³ã¯æ§ã ã§ãã Googleå çã«èãã¦ã¿ãã¨æåã®ãã¼ã«ãããããã¨åºã¦ãã¾ãã GUIã§æä½ã§ããããéçºå·¥æ°ãåæ¸ã§ããã®ã§ããã¼ã¿ã«ã§ã¿ãã¨è²·ã£ãã»ããããããã 以ä¸ã¯ããªã¼ã§ä½¿ãåæã®ããPDFä½æã»å¤æãã¼ã«ããªããã®ãã¨æ¢ããã¡ã¢ã ç°å¢ã¯Linux(CentOS5.2) + Apache + PHP
ã¿ã°: Wordpress WordPressã§éå¶ãã¦ããè¨äºãJAMStackãµã¤ãã«ç§»è¡ããããGitHubã§ç®¡çãããã¨ããã¨ããè¨äºæ°ãå°ãªããã°ããããæä½æ¥ã§ãåé¡ãªãããã§ãããæ°åãæ°ç¾ã®è¨äºãæä½æ¥ããã®ã¯ãããã«ããã©ãã§ããããä»åã¯ãã¾ãã«ãã¾ã£ãWordPressã®è¨äºãMarkdownå½¢å¼ã«ä¸æ¬ã§å¤æ´ããã¦ã³ãã¼ãããæ¹æ³ãç´¹ä»ãã¾ãã ç¶ããèªã æè¿ã¯Reactããã¼ã¹ã«ãããã¬ã¼ã ã¯ã¼ã¯ãNext.jsãããã£ã¦ããã¾ããä»åã¯WordPressã«ç»é²ããæ稿ãNext.jsã§è¡¨ç¤ºããã¦ã¿ããã¨æãã¾ãï¼ ç¶ããèªã WordPressã®ææ°ãã¼ã¸ã§ã³ã5.9ããªãªã¼ã¹ããã¾ãããï¼ããã«ãããã¦ï¼æ°ãã«ã1åã§ãã¹ã¦èº«ã«ã¤ãWordPresså ¥éè¬åº§ãã¨ããæ¬ãå·çãã¾ããï¼2022å¹´3æ23æ¥çºå£²ã§ãï¼ä»åãäºç´ã»æ©æè³¼å ¥è ã®ç¹å ¸ãããã¾ããã¼ï¼ ç¶
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}