hello...
just asking...what is better in this case:
i got lots of scripts and almost all of them needs to connect to the DB and
some of thems are accessed lots of times what is better to use in such
cases:
mysql_connect() or mysql_pconnect()...
i mean will speed factor play a role when lots and
[PHP] what is better? mysql_connect() or mysql_pconnect()?
mysql_pconnect()
is better for a web application because is lighter for the server, (the connection is
not permanent)
I believe a good article is at
http://www.php.net/manual/en/features.persistent-connections.php
elias [EMAIL PROTECTED] wrote in message
9c3fi6$edm$[EMAIL PROTECTED]">news:9c3fi6$edm$[EMAIL PROTECTED]...
hello...
just asking...what is better in this case:
i got lots of scripts and almost all
If you are using PHP as CGI, pconnect is no different than connect.
If you are using PHP as an Apache module, persistant connections can be of
some help. But if your own mysql, I don't reccommend you bother with
pconnect.
MySQL is extremely efficient at creating connections, unlike databases
4 matches
Mail list logo