於是我去下載了比較舊版本的mysql-connector-odbc,
安裝設定後,已經可正常連線
透過QlikView測試一下中文,可正常顯示!
如果想單純只dump一個TABLE,mysqldump -u xxx -p 資料庫 資料表 > database.sql --default-character-set=latin1Securimage class
image_height
image_width
$securimage->image_width = $securimage->image_height * M_E
num_lines
noise_level
perturbation
text_transparency_percentage
captcha_type
Securimage::SI_CAPTCHA_MATHEMATIC
,表示驗證碼改為回答數學計算式結果;預定值 Securimage::SI_CAPTCHA_STRING
。image_bg_color
Securimage_Color class
物件處理,參數可以是 (r,g,b)
數值或 16 進位顔色表示法;預定值 '#ffffff'
。如,$securimage->image_bg_color = New Securimage_Color(180,180,180);
$securimage->image_bg_color = New Securimage_Color('#aabbff');
text_color
Securimage_Color class
物件處理,參數可以是 (r,g,b)
數值或 16 進位顔色表示法;預定值 '#707070'
。如,$securimage->text_color = New Securimage_Color(0,0,0);
$securimage->text_color = New Securimage_Color('#666666');
line_color
Securimage_Color class
物件處理,參數可以是 (r,g,b)
數值或 16 進位顔色表示法;預定值 '#707070'
。如,$securimage->line_color = New Securimage_Color(110,110,110);
$securimage->line_color = New Securimage_Color('#666666');
noise_color
Securimage_Color class
物件處理,參數可以是 (r,g,b)
數值或 16 進位顔色表示法;預定值 '#707070'
。如,$securimage->noise_color = New Securimage_Color(110,110,110);
$securimage->noise_color = New Securimage_Color('#666666');
code_length
$securimage->code_length = mt_rand(5,7);
expiry_time
check($code)
$code
是否與驗證碼相符。outputAudioFile()
show($background_image = '')
$background_image
參數為背景圖的目錄路徑。$mobile_browser = '0'; if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) { $mobile_browser++; } if((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml')>0) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))) { $mobile_browser++; } $mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4)); $mobile_agents = array( 'w3c ','acs-','alav','alca','amoi','audi','avan','benq','bird','blac', 'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno', 'ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-', 'maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-', 'newt','noki','oper','palm','pana','pant','phil','play','port','prox', 'qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar', 'sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-', 'tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp', 'wapr','webc','winw','winw','xda','xda-','Googlebot-Mobile'); if(in_array($mobile_ua,$mobile_agents)) { $mobile_browser++; } if (strpos(strtolower($_SERVER['ALL_HTTP']),'OperaMini')>0) { $mobile_browser++; } if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'windows')>0) { $mobile_browser=0; } if($mobile_browser>0) { header("Location: mobile.php"); //手機版 }else { header("Location: pc.php"); //電腦版 }