Programming: February 2009 Archives

Uninstall All Windows Live Software

| | Comments (0)

寫了一個程式可以快速移除所有的 Windows Live 程式
Uninstall All Windows Live Software (Source Code)
它會去 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
找 DisplayName 有包含 Windows Live 字串的, 然後用 MsiExec /passive /uninstall GUID 的方式移除, 適用所有的版本.

PHP MySQL Improved Extension

| | Comments (0)

在 PHP 下用 pcntl_fork 同時存取 MySQL Server, 必需用 mysqli
用一般的 mysql function 會出現 MySQL server has gone away 的錯誤訊息.
範例:
$mysqli=mysqli_init();
mysqli_real_connect($mysqli,$dbhost,$dbuser,$dbpassword,$dbname) or die ('Unable to connect');
$result=mysqli_query($mysqli,$sql);

ref. MySQL Improved Extension

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Archive

This page is a archive of entries in the Programming category from February 2009.

Programming: December 2008 is the previous archive.

Programming: March 2009 is the next archive.

Find recent content on the main index or look in the archives to find all content.