Php Mysqli Persistent connection error

Tauredummed

New Member
I have a problem in my script that appen sometimes,usually when i leave it for some time(like 5-10 minutes)without requests i get this error: Warning: mysqli_connect() [function.mysqli-connect]: MySQL server has gone away in FILE.php on line 30and this is the code that gives me error is this:\[quote\] $this->db=mysqli_connect('p:'.$this->db_host,$this->db_user,$this->db_pwd,$this->db_name);\[/quote\]The code is contained on a singleton class and i'm currently developing on windows7 with
  • Apache 2.2.11
  • MySQL 5.1.36
  • PHP 5.3.0
(i use WampServer 2.0i)but i'll obviously use linux on the final server.Thanks.
 
Back
Top