Daniel's Blog
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
Filed under: Linux comment
Comments (0) Trackbacks (0)

This article was not posted any comments.


Leave a comment

* Copy this password:

* Type or paste password here:

391 Spam Comments Blocked so far by Spam Free Wordpress

Please copy the string to the field below VkVzpq:

No trackbacks.