29 Jul/11 0
PHP Cheat Sheet
Here I collect useful PHP code snippets
Multithreading with pseudo-screen
# / Usr/bin/php5 for! ($ I = 1; $ i <50; $ i + +) {echo "starting $ i \ n"; thread exec ("screen-d-m / usr/bin/php5 /. . php ");} MySQL server has gone away in the long-running PHP shell scripts
# / Etc/php5/cli/php.ini = On mysql.allow_persistent mysql.max_persistent = -1 mysql.max_links = -1 mysql.connect_timeout = -1
