EZBOY的工作日誌
PHP,MySQL,APACHE,JQUERY,AJAX,UBUNTU
2011-03-31
利用curl取得http header訊息
$remoteFile = "http://www.google.com/";
$ch = curl_init($remoteFile);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$data = curl_exec($ch);
curl_close($ch);
MySQL 欄位排序-特定的值
ORDER BY FIELD(CONVERT(XXX using binary),'A1','A2','A3')
較新的文章
較舊的文章
首頁