ざっと検索したら出てきました。
Flashもびっくりのリッチなインターフェースみたい。
FlexとかSilverlightはどうなるのかなあ。
JavaScript使ったサービスが多くなってゆるやかに衰退していくのかな。
RewriteCond %{HTTP_USER_AGENT} IE的な何か
RewriteRule ^/(.*)$ http://example.com/redirect/http%3A//example.co.jp/ [R=302,L]
RewriteCond %{HTTP_USER_AGENT} IE的な何か
RewriteRule ^/(.*)$ http://example.com/redirect/http\%3A//example.co.jp/ [R=302,L]
RewriteCond %{HTTP_USER_AGENT} IE的な何か
RewriteRule ^/(.*)$ http://example.com/redirect/http\%3A//example.co.jp/ [R=302,L,NE]
$url = "http://www.yahoo.co.jp/"; $start = microtime(); $res = my_curl($url); if($res["info"]["http_code"] == 200){ print("success"); }else{ print("error"); } $end = microtime(); function my_curl($url){ $ch = curl_init($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); $info = curl_getinfo($ch); return array("res" => $res, "info" => $info); }
$url = "http://www.yahoo.co.jp/"; $start = microtime(); $res = my_curl_multi(array($url)); if($res[0]["info"]["http_code"] == 200){ print("success"); }else{ print("error"); } $end = microtime(); function my_curl_multi($urls){ $mh = curl_multi_init(); $chs = array(); foreach($urls as $url){ $ch = curl_init($url); $chs[] = $ch; curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_multi_add_handle($mh, $ch); } do{ curl_multi_exec($mh, $running); }while($running); $res = array(); foreach($chs as $ch){ $info = curl_getinfo($ch); $body = curl_multi_getcontent($ch); curl_multi_remove_handle($mh, $ch); curl_close($ch); $res[] = array("res" => $body, "info" => $info); } curl_multi_close($mh); return $res; }
$time_start = microtime(); for($i = 0; $i < 1000; $i++){ $filename = tempnam($dir, $prefix); unlink($filename); } $time_end = microtime();
$time_start = microtime(); for($i = 0; $i < 1000; $i++){ $fp = fopen($dir.$prefix, "w"); fclose($fp); unlink($dir.$prefix); } $time_end = microtime();
window.onload = function(){ var start = new Date(); for(var i = 0;i < 10000; i++){ var a = 100; if(typeof a === 'string'){ return a.substring(0, 2); }else{ } } var end = new Date(); alert((end - start)); }
window.onload = function(){ var start = new Date(); var a = 100; for(var i = 0;i < 10000; i++){ try{ a.substring(0, 2); }catch(e){ } } var end = new Date(); alert((end - start)); }
try{ ... }catch(error){ if(error.code === '500'){ var c = error.code; ... } }
try{ ... }catch(error){ handleError(error); }