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

Leave a comment

凱莉手工坊

凱莉手工坊

November 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          

About this Entry

This page contains a single entry by Pank published on February 21, 2009 6:26 PM.

Pure Windows Live Messenger Build 14.0.8064.206 was the previous entry in this blog.

Nikon D80 1.11 Firmware is the next entry in this blog.

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