PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
because of the way something is being handled (and unfortunatly, i cant change in a reasonable amount of time), i need to check and see if a variable contains a valid MySQL resource handler (a connection, specifically).
I have no idea where to go on this one... any suggestions?
If I shut the mysql server down while the script is sleeping the output is
mysql link
Uptime: 1207 Threads: 1 Questions: 2 Slow queries: 0 Opens: 12 Flush tables: 1 Open tables: 3 Queries per second avg: 0.002
--
mysql link
MySQL server has gone away