PHP Dreamweaver and mysql_pconnect, how can i change to mysql_connect
Hello,
i have recently troubleshooted a bug i have had for years. Dreamweaver by default uses mysql_pconnect when connecting to databases and this is considered bad practice for websites, Most servers only have a certain amount of connections and mysql_pconnect uses them all up and freezes all database driven websites...
You should use mysql_connect and it is very easy to change in the connection code and does not break anything...
The problem i was getting was that on 2 web servers where i have built many many websites using dreamweaver and databases I would occasionally get "too many connections error" when viewing a website, also, my own personal computer would freeze when viewing these websites because my computer had too many connections open on the same server.
So, is their anything i can change in dreamweaver to make the default mysql_connect instead on mysql_pconnect
Also, Adobe should pay me for figuring this out. ![]()
