Hi there,

I'm writing a little server in PHP that allows incoming connections on a particular port. The server will verify the user attempting to connect through a MySQL database. Once that is done, it forks the current process which will then continue processing just that connection. The server then resumes its search for new incoming connections.

My question is:

how do the mysql databse connections get handled in this case. Do i need to drop the database connection in the child and start a new one or do both (or however many processes get forked) use the same connection?

I cant really find any info on this subject and i'm hoping some one here wil be able to help.

Thanks in advance