sfriedberg
1-10-05, 03:55 AM
I understand SQL but I don't pretend to understand everything about how Apache, PHP and mySQL are integrated. In the context of Powweb shared hosting, accessing mySQL through PHP, are the following statements correct?
1) There are no persistent mySQL connections available from PHP, although it does no damage to request one.
2) Connections will always be dropped at the end of each PHP CGI request.
3) The lifetime of temporary tables is, therefore, bounded by the creating PHP CGI request.
4) Connections will never be dropped (barring truly unusual circumstances) during a PHP CGI request.
If statement 1 is false, is there any way to distinguish whether mysql_pconnect has returned a persistent connection or opened a new one?
I'm pondering whether any mySQL connection-associated entities (like temporary tables and transactions) can span a redirect, and it looks like the answer is "no". Comments? Corrections?
1) There are no persistent mySQL connections available from PHP, although it does no damage to request one.
2) Connections will always be dropped at the end of each PHP CGI request.
3) The lifetime of temporary tables is, therefore, bounded by the creating PHP CGI request.
4) Connections will never be dropped (barring truly unusual circumstances) during a PHP CGI request.
If statement 1 is false, is there any way to distinguish whether mysql_pconnect has returned a persistent connection or opened a new one?
I'm pondering whether any mySQL connection-associated entities (like temporary tables and transactions) can span a redirect, and it looks like the answer is "no". Comments? Corrections?