On my server, i have all requests for a jpg or mpg file going thru a php script, which then connects to mysql.
this could lead to hundreds of connections per second
should i use mysql_connect when connecting or mysql_pconnect?
is mysql_pconnect for each user loading the script? that is.. person a loads site, a persistent connection is created with him. b loads site, persistent connectino is created with him too. Or is it that only one connection is created, and shared amonst all requests by php files?
which should i use? pconnect or connect?