분류 전체보기933 PHP 마이크로타임 microtime function getmicrotime() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = getmicrotime(); 2008. 10. 18. PHP 다국어 후킹 switch($HTTP_ACCEPT_LANGUAGE) { case "ko" : header("Location: /kor/index.php");break; case "en" : header("Location: /enu/index.php");break; case "ja" : header("Location: /jpn/index.php");break; case "zh" : header("Location: /chs/index.php");break; case "zh-cn" : header("Location: /chs/index.php");break; Default : header("Location: /kor/index.php");break; } 2008. 10. 18. PHP dechex로 암호화 $d_time = microtime (); $code = 'x'.substr('0000000'.dechex($d_time*100000000),-7); 2008. 10. 18. PHP 링크 주소에서 http://존재 유무 체크 preg_match("/^(http:\/\/)/i",$url, $matches); $host = $matches[0]; if($host!="http://") $url="http://".$url; else $url=$url; 2008. 10. 18. 이전 1 ··· 193 194 195 196 197 198 199 ··· 234 다음