PHPã§æ¥æ¬èªã¡ã¼ã«ãéã - åºæ¬ç·¨ã«å¼ãç¶ãã ä»åã¯å¿ç¨ç·¨ããéããã¾ãã åºæ¬ç·¨ã§è§£èª¬ããmb_send_mailã使ãã° ã·ã³ãã«ãªã¡ã¼ã«ãéãã«ã¯ååãªæ©è½ãããã¾ããã ãã以ä¸ã«è¤éãªãã¨ãä¾ãã°HTMLã¡ã¼ã«ãæ·»ä»ãã¡ã¤ã«ã 使ã£ãã¡ã¼ã«ã«ã¯mb_send_mailã¯ä½¿ãã¾ããã mailé¢æ°ã使ã£ã¦ãããã«ã¬ãªã¬ãªã¨ã¡ã¼ã«ã®ä»æ§ã« ãã£ã¦æ¸ãã°éããã®ã§ãããããã§ã¯ãã¾ã㫠大å¤ãªã®ã§ãã©ã¤ãã©ãªã使ãã¾ãã ã©ã¤ãã©ãªã使ã£ãæ¥æ¬èªã¡ã¼ã«éä¿¡ PHPã§è¤éãªã¡ã¼ã«ãéãã®ã«ä½¿ããã¹ã¿ã³ãã¼ã㪠ã©ã¤ãã©ãªã¨ãã¦ã¯ãPEAR::Mailã¨PHPMailerãæåã§ãã (ãã ãã両ã©ã¤ãã©ãªã¨ãæ¥æ¬èªã¡ã¼ã«ã«ã¯å¯¾å¿ãã¦ããªãã®ã§ã ãã®ã¾ã¾ã§ã¯æååããã¦ãã¾ãã¾ã) PEAR::Mailã¯PHPã®å ¬å¼ã©ã¤ãã©ãªã®PEARã§æ¡ç¨ããã¦ãã¾ããã PHPMailerãX
å°ãã®ã³ã¼ãã§å®è£ å¯è½ãª20ã®jQueryå°æéç´ æµãªåããæ軽ã«å®è£ ã§ããJavaScriptã©ã¤ãã©ãªãjQueryããjQueryã«ã¯å¤ãã®ãã©ã°ã¤ã³ãæã£ã¦ãã¾ãããä»åã¯ãã©ã°ã¤ã³ãªãã§å®è£ ã§ããjQueryã®å°æãç´¹ä»ãã¾ãï¼ãjQueryã£ã¦ãªãã ï¼ãã¨ãã人ãã³ããã§å®è£ ã§ãã¾ããï¼ãµã³ãã«ãç¨æããã®ã§ãã²ã覧ãã ããï¼ è¿½è¨ï¼ãã®è¨äºã§ç´¹ä»ããã¦ããããã¤ãã®æ¹æ³ããä»ã§ã¯ CSS ã®ã¿ã§å®è£ å¯è½ã§ãï¼è©³ããã¯ããã¤ã¦ã¯ JavaScript ãå©ç¨ãã¦ãããã®ã®ãä»ã§ã¯ CSS ã®ã¿ã§å®è£ ã§ãã 10 ã®å°æããã覧ãã ããã jQuery ã®åºæ¬çãªä½¿ãæ¹ã¾ãã¯jQuery æ¬å®¶ãã jQuery ãã¡ã¤ã«ããã¦ã³ãã¼ããã¾ãã<head> å ã«ä¸è¨ãè¨è¿°ããjQuery ãã¡ã¤ã«ãèªã¿è¾¼ã¿ã¾ãã <script type="text/javascript" src
ç¾å¨ãA!@attripããçºã§è©±é¡ã«ãªã£ã¦ããããã£ã2è¡ã§IE5.5ï½IE8ãã¢ãã³ãã©ã¦ã¶ã®æåã«ããéæ³ã®JSãã¨ããè¨äºã Webãã¶ã¤ã³çéã§ã¯å½ããåã®ãã®ã§ãããå®ã¯ããã²ã¨ã¤è¿½å ãã¦ããã¨ãããããããªãjsããã£ãããã¾ãã Photo:html5 By michael pollak IE8以åã®ãã©ã¦ã¶ã¯ã©ãã«ãããã«ãéçºè æ³£ãããªããã§ãããie9.jsã¨css3-mediaqueries.jsãçªã£è¾¼ããã¨ã§ãã¢ãã³ãã©ã¦ã¶ã¨åãæåã«ãããã¨ãã§ãã¡ããã¾ãã ããå°ãå ·ä½çã«æ¸ãã¨ãie9.jsãçµã¿è¾¼ããã¨ã§ã position:fixed;ã«å¯¾å¿ max-widthãmax-heightã«å¯¾å¿ å±æ§ã»ã¬ã¯ã¿ãæ¬ä¼¼ã¯ã©ã¹ã«å¯¾å¿ margin:0 auto;ã§ã®ã»ã³ã¿ãªã³ã°ã«å¯¾å¿ ééPNGã«å¯¾å¿ opacityã«å¯¾å¿ ã¨ãã£ããã¨ãå¯è½ã«ãªãã¾ããè¦ã¯CS
PHPã§ã¯ ereg_replace ã¨ãããã®ã¨ãpreg_replace ã¨ããPerläºæã®æ£è¦è¡¨ç¾ç½®æé¢æ°ã使ãã¾ãã æ£è¦è¡¨ç¾ã«ã¤ãã¦è©³ãããªãã¨ããæ¹ã¯ç¿ã§ããããæ£è¦è¡¨ç¾ãã©ããã // ereg_replace ã®å ´å $str = "you are <b>cool!</b>"; $str2 = ereg_replace("<b>(.+?)</b>","\\1",$str);
error ãã®è¨äºã¯æçµæ´æ°æ¥ãã14年以ä¸ãçµéãã¦ãã¾ãã jQuery ã§éåæéä¿¡å¦çããã¦ããéã«ãNow Loadingãçãªã¢ãã¡ã¼ã·ã§ã³ç»åã表示ãããã¨ããã®ã¯ãããããã¿ã¼ã³ã§ããããã®æ¹æ³ã®è§£èª¬ã§ãã ãã¼ãã£ã³ã°ä¸ã®ç»åã表示ããã¹ã¯ãªãã ä¾ãã°ã以ä¸ã®ãã㪠html ã® id="message" ã®å 容ã Ajax ã«ãã£ã¦å¤æ´ãããå ´åã <p id="message">ããã®ã¡ãã»ã¼ã¸ãéåæéä¿¡å¾ã«å¤æ´ããã¾ãã</p> <form method="GET" action="#"> <input type="button" value="ãããã¯ãªãã¯ã§ã¡ãã»ã¼ã¸å¤æ´" onclick="ChangeMessage();"> </form> ãã®æãfunction ChangeMessage() ã®ä¸èº«ã¯é常以ä¸ã®ããã«ãªãã¾ãã function
ã¨ãã£ã¦ãããããããããã®ãããªããã©ãããããï¼æ± å ¨è§æåãå«ã¾ãã¦ãããã¨ããã§ãã¯ããé¢æ° ãªãã¨ãªãä»æ¥ç·¨ã¿åºããTIPSããã strlen()ã¯ãã¤ãã§ã«ã¦ã³ããmb_strlen()ã¯ãã«ããã¤ãã®æååæ°ã§ã«ã¦ã³ããããã®ãå©ç¨ãã¦ãã¾ãã function checkHalf($data) { $ret = false; $len = strlen($data); $mblen = mb_strlen($data,mb_internal_encoding()); if ($len !== $mblen) { $ret = true; } return $ret; } å ¨è§æåãå«ã¾ãã¦ãããã¨ããã§ãã¯ããé¢æ°ãæ¤ç´¢ãã¦ãåºã¦ããªãã£ãã®ã§è¼ãã¦ã¿ãã
ãã¼ã«ã«ç°å¢ã§XAMPPã使ã£ã¦ãããã§ãããpdo_mysqlãæå¹ã«ãããã¨æã£ã¦php.iniãè¦ãã ;extension=php_pdo_mssql.dll ;extension=php_pdo_mysql_mysqlnd.dll extension=php_pdo_mysql_libmysql.dll ã¨ãããªã£ã¦ããã§ããã php_pdo_mssql ã¯ãã¾ãå½ç¶æå¹ã«ããã extension=php_pdo_mysql_libmysql.dll ã¯æ¢ã«æå¹ã ãããããã ã§ãããã php_pdo_mysql_mysqlnd ã¯ï¼ ã°ã°ã£ã¦ã¿ãã¨ãããã¨ã©ã¼æã®å¯¾å¦ã¨ãã¦ãã³ã¡ã³ãã¢ã¦ãããã¦ãã ; ãå¤ããã¿ãããªã¢ããã¤ã¹ãããã¦ããä¾ãè¦ãããã®ã§ãã¾ãæå¹ã«ãã¨ããã»ãããããã ãããªã¼ã ç¶ããèªã PHPã§ãGoogle翻訳APIã使ã£ã¦ãGoogle翻訳
Google Translate API ã使ã£ã¦ã¿ã¾ãã http://code.google.com/apis/console/?api=traslate ã¸ã¢ã¯ã»ã¹ã Google ã¢ã«ã¦ã³ãã§ãã°ã¤ã³ Google ã¢ã«ã¦ã³ãã¯ãGmail ã®ãã®ã§å åã§ã ããã¨ã1Start using the Google APIs Console ã¨ããç»é¢ãã§ã¦ããã®ã§ã æ¬æ¥ãªããAdd Project ... ãé¸æ ç§ã®å ´åããã§ã«éå»ã«é¸ãã§ãããã ãããªãã Create project ... ããã§ãªãã¨ããç¶æ ã§ãã ããã§ã Google API Console ã®ç»é¢ãã§ã¾ã ãã®ç»é¢ã§ã¯ åAPIã®æå¹åã®æç¡ã決å®ã§ãã¾ã ã¾ãã¯ãä»åã¤ãã£ãæ©è½ Google Translate API ã使ãã¾ã ã¾ãã¯ãã¢ã¯ã»ã¹ãã¼ãåå¾ãã¾ã ãããããããããªãã£ãã®
æ£è¦è¡¨ç¾ãã¾ã¨ãã¦ã¿ãã preg_match ã§ä½¿ãããæ£è¦è¡¨ç¾ã®æ¸ãæ¹ã®åã« ã¾ãã¯ã ï¼æ¤ç´¢å¯¾è±¡æååã1è¡ãï¼ããã¨ãè¤æ°è¡ãï¼ï¼ æååã®ä¸ãããã¿ã¼ã³ã«åè´ããé¨åãæ¢ãåºãå ´åããã®æååã1è¡ï¼æ¹è¡æåãï¼ã¤ï¼ãªã®ããè¤æ°è¡ï¼æ¹è¡æåãè¤æ°ï¼ãªã®ãã§ããããæ¼ç®åãé©åã«æå®ã preg_match("/ãã¿ã¼ã³/", 調ã¹ãæåå); "/ãã¿ã¼ã³/"ãã//æååã®1è¡ç®ã®ã¿ã調ã¹ã "/ãã¿ã¼ã³/g"ãã//è¤æ°è¡ã調ã¹ã "/ãã¿ã¼ã³/s"ãã//æ¹è¡æåãç¡è¦ãã1è¡ã¨ã¿ãªãã¦èª¿ã¹ã ã¤ãã§ã«ã "/ãã¿ã¼ã³/i"ãã//æååã®å¤§æåã»å°æåãåºå¥ããªã "/ãã¿ã¼ã³/is"ãã//大æåã»å°æåãåºå¥ããã1è¡ã¨ã¿ãªãã¦èª¿ã¹ã ï¼åºæ¬ï¼ preg_match ã¯ãæååä¸ã«ç¾ããæåã®ãã¿ã¼ã³ã®ã¿ãæ¤åºã
1.get_headers åèï¼URLãå®éã«åå¨ãããã©ããã調ã¹ãæ¹æ³(PHP) | PIXTURE STUDIO ~~~ 2.fopen åèï¼PHPã§ãªã³ã¯å ãåå¨ãããã©ããã調ã¹ãæ¹æ³ â ãããã®åå¿é² ~~~ ~~~ 3.file_get_contents ~~~ 4.pear ãããã使ããããªãã®ã§ãã¹ ããããå®éã«ã¾ã¨ãã¦ãã£ã¦ã¿ã ~~~ get_headers â; $header = get_headers($url); if(strstr($header[0], â200â)) { echo $url . âã¯åå¨ãã¾ãâ; } else { echo $url . âã¯åå¨ãã¾ããâ; } echo â fopen â; if($fp = fopen($url, ârâ)){ echo $url . âã¯åå¨ãã¾ãâ; }else{ echo $url
æ¬æ¥ããPHPã®ã¡ã¢ãè¨è¿°ãã¦è¡ããã¨æãã¾ãã ãã¦æ©éä»æ¥ã®ãã¿ã ããã ã£ãããã«ã¦file_get_contentsã§Webãã¼ã¸ã¸ã¢ã¯ã»ã¹ããéã«ãUserAgentãå¤æ´ããæ¹æ³ãç´¹ä»ããã¦ãã¾ãã ã§ã¯ããããå¿ç¨ãã¦file_get_contentsã使ã£ã¦POSTå½¢å¼ã§ãã¼ã¿ãéä¿¡ãã¦ã¿ã¾ãããã åèã³ã¼ã <?php //POSTãã¼ã¿ $data = array( "param1" => "data1", "param2" => "data2" ); $data = http_build_query($data, "", "&"); //header $header = array( "Content-Type: application/x-www-form-urlencoded", "Content-Length: ".strlen($data) ); $cont
â ãregister_globalsã®è¨å®(php.ini) GETãPOSTã§éä¿¡ãããå¤æ°ãã°ãã¼ãã«å¤æ°ã¨ãã¦ä½¿ç¨åºæ¥ãã * Default register_globals = Off (PHP4.2.0ããåæå¤ãOff) * Example ãã°ã¤ã³èªè¨¼ã¹ã¯ãªãã â login.php(è²ã èå¼±æ§ããã¾ãããæ°ã«ããªãå½¢ã§) <?php //ã¦ã¼ã¶åã¨ãã¹ã¯ã¼ãã®å®ç¾© $usertable = array( 'guest' => 'guestpass', 'admin' => 'adminpass' ); //å ¥åå¤ãã§ã㯠if (!$username || !$password) { echo "ã¦ã¼ã¶åã¾ãã¯ãã¹ã¯ã¼ããæªå ¥åã§ãã"; exit(); } //ãã¹ã¯ã¼ããã§ã㯠if ($usertable[$username] == $password) { $c
2010å¹´5æ25æ¥ PHPã§æ°åã®åã«ï¼ã追å ãããå ´åãä¾ãã° 1 -> 001 2 -> 02 ãªã©ãåï¼è¿½å 㯠$number = sprintf("%02d",$number); ã¨ããæ¸ãæ¹ã§å¯è½ã%02dã¯2æ¡ã§ããã2æ¡ã«æºããªããã°0ã§åãããã¨ããæå³ã 3 ã 003ã«ããããªã $number = 3; $number = sprintf("%03d",$number); ã¨ããäºã«ãªãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}