原创 warning:Cannot modify header information

Warning: Cannot modify header information - headers already sent by (output

原创 Install PEAR Problem

problem 1: x y/5DU(@  when install PEAR, my PHP is 5.2 version. which has a

原创 export data from mySQL to csv

 怎麼把數據送MySQL database export to csv? N=o~/%Wz|  jsp VUQ4  非常簡單: QQ:` {r  8!

原创 MySQL: Incorrect key file, try to repair it

run below comment in MySQL: repair table test_out_realtime fMM5@ 6CP  D&)~{It~/W  use this command to repair table 

原创 把一個變量變成integer

 用Intval可以從一個變量中提取integer值出來。 /Ho';jvP  K_sNP(|D  <?php v,/!,@)  echo intva

原创 compile PHP_to_exe file

 有用戶界面的 php compiler: (s$6 dU  I dN(2*b  Priadoblender. Home Page Ay{Mp/CoG

原创 server transfer

If you server website address is changed from www.A.com to www.B.com I4(D3N

原创 PHP to Telnet

剛剛發現通過PHP, 用telnet方式連接UNIX server 的方法。 RoX~1)etH  .R[eFTYba  這個是一個class 文件. 通過這個class, 可以實現PHP to Telnet 啦。 P1{ub k  �a

原创 undefined function imagecreatefromjpeg()

 原因可能有2個: G5~MVWmx  1) 你沒有enable php_gd2.dll. P(l+&:3d  go to php.ini, enab

原创 find & replace text tool

 if you need to find and replace a text among 10000 files... it is gonna be

原创 關於pear

PEAR 中文手冊-phpv.net譯製版 9D1w_T  http://pear.phpv.net/cn/index.html #qUJdeo(

原创 Can't connect to MySQL server on 'localhost' (10048)

 Can't connect to MySQL server on 'localhost' (10048) +;v$!#'  O6; 052Oi  這

原创 php寫的 html table generator. 可以自動生成列表.很好用的

class html_table{      var $bgcolor = "";            // Table's bgcolor      var $width = "100%";      

原创 php中相關亂碼處理

本文的作用是爲了全方位的避免因使用UTF-8編碼而產生的亂碼問題,不包含具體的亂碼解決方案和編碼轉換的內容。對於UTF-8編碼的深入瞭解,請參閱:《PHP匹配UTF-8中文字符的正則表達式》1、 編輯器:不

原创 從一個string 裏面搜索一個或幾個chars

if(strpbrk($string, $char)=="") 就是這個String 裏面找不到要的char.