Hi,

I am developing a web application using Mysql, Apache and PHP and i sometimes get this message "MySQL server has gone away" whenever i call a scripted page.

This is what i am doing in my scripts:

- To make the database connection in any one scripted page i use the command "mysql_pconnect()".
- For the subsequent commands that access the database (within the same scripted page), i don't connect to the database again because i assume the first command (mysql_pconnect()) gives me a permanent connection.

What am i not doing right?

Or is it a bug in either Apache, PHP or MySQL?