If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > mysql + PHP + forking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-12-04, 05:45
jateen jateen is offline
Registered User
 
Join Date: Feb 2004
Location: Leeds, UK
Posts: 8
mysql + PHP + forking

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

Jateen
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On