原创 我的友情鏈接

51CTO博客開發

原创 在PHP,獲取checkbox值並傳遞

 HTML Code: <form action="#" method="post"> <input type="checkbox" name="check[]" value=**>  <input type="checkbox" name

原创 PHP date and time

 <?php //+2 weeks later, "+" means add,"-" means minus $offset= strtotime("+2 weeks"); //strtotime : string to time echo

原创 [PHP]查看用戶IP&查看當前字符設置代碼

1. 查看用戶IP <?php $ip = $_SERVER ['REMOTE_ADDR']; echo $ip; ?> 2.查看當前字符設置 <?php $link = mysql_connect('localhost', 'root

原创 在PHP中實現按照預定規則自動生成編號的方法

代碼實現: $today = date ( "Ymd", time () );//獲取系統當前時間 $query = "select max(Id) as maxId from info where Id like '$today%'"

原创 How to solve “jQuery not working in AJAX loaded elements”

When you've added a click (or other event) handler to all links using $('a').click(fn), you'll find that the events no

原创 我的友情鏈接

51CTO博客開發

原创 MySQL字符設置爲utf8,但是頁面顯示依然是亂碼(??)的解決辦法

1. 找到MySQL的my.ini文件; 2. 找到[mysqld]區間; 3. 添加以下一行代碼: character_set_server = utf8 character_set_client = utf8(如果第一行不行,再添加第

原创 正預備替換 cups 1.4.4-6 ubuntu2.2

另外打開一個終端,輸入: ps aux|grep cups 關閉那個start或stop的進程(pid),sudo kill <pid> 這時upgrade會繼續

原创 在PHP中利用LDAP通過活動目錄(Active Directory)實現域用戶登錄驗證的辦法

  1.代碼實現 <?php $user = $_POST ['name']; $password = $_POST ['pwd'];   //設定域信息 $domain = 'a.com'; //設定域名 $basedn = 'dc=a,