php Programming Glossary: mysql_ping
Deprecated MySql Functions http://stackoverflow.com/questions/15321620/deprecated-mysql-functions ASC' result db_result_to_array mysql_query query if mysql_ping connection mysql_close connection return result php mysql..
MySQL server has gone away - in exactly 60 seconds http://stackoverflow.com/questions/1644432/mysql-server-has-gone-away-in-exactly-60-seconds MYSQL_User MYSQL_Pass mysql_select_db MYSQL_db link echo mysql_ping . mysql_ping link LIVE DEAD . br br sql SELECT SLEEP 120 start.. MYSQL_Pass mysql_select_db MYSQL_db link echo mysql_ping . mysql_ping link LIVE DEAD . br br sql SELECT SLEEP 120 start microtime.. errline global link echo Error errno br errstr br echo mysql_ping . mysql_ping link LIVE DEAD . br echo br allDone OUTPUT mysql_ping..
Fastest way to insert 134675 values in remote database http://stackoverflow.com/questions/6231285/fastest-way-to-insert-134675-values-in-remote-database improve this question You could include in your loop the mysql_ping function. This function checks to make sure that the connection.. example you could do something like foreach array as value mysql_ping dbconn sql insert into collected values ' . value. ' res mysql_query.. this I haven't tested function check_dbconn connection if mysql_ping connection mysql_close connection connection mysql_connect 'server'..
|