PHP Dreamweaver and mysql_pconnect, how can I change to mysql_connect

Hello

I recently troubleshooted a bug I've had for years. By default Dreamweaver uses mysql_pconnect connecting to databases and this is considered bad practice for Web sites, most servers have only a certain amount of connections and mysql_pconnect uses all and freezes all database Web sites...

You use mysql_connect and it is very easy to change in the code of connection and does not break anything...

The problem I wanted to come, it was that I would get from time to time on 2 web servers where I have built many many websites using dreamweaver and databases "error too many connections" when you visit a Web site, also, my own personal computer would freeze watching these sites because my computer had too many connections open to the same server.

So is their all I can change in dreamweaver to make the default mysql_connect instead on mysql_pconnect

In addition, Adobe should pay me to figure this.

so I opened the js file and it was always mysql_connect, so I suppose it must be changed elsewhere

Right. In the same folder, you should find connection_includefile.edml. That open and change mysql_pconnect online 12:

$@@cname@@ = mysql_pconnect($hostname_@@cname@@, $username_@@cname@@, $password_@@cname@@) or trigger_error(mysql_error(),E_USER_ERROR); 

I think that this should be an adobe update should be added with the new versions of dreamweaver.

An application of feature/bug report: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform.

Tags: Dreamweaver

Similar Questions

Maybe you are looking for

  • Satellite Pro A120 is now completely dead

    I have a Pro A120, which has not been used for a few months, but is now completely dead.There are no lights on it at all. I bought a new power adapter, but still nothing.Can anyone suggest anything to check/replace or did it. It worked fine the last

  • It is legal to buy iphone Moldavian customs

    It is legal to buy the iphone 6 or 6 s customs

  • I need software (driver) for camera meade binoculars.

    uleadphotoexpress I need software (driver) for camera meade binoculars. Manual says I have to download Ulead Photo Express. When I do the site I used to download things, that I don't want and I still can't my camera to work on my PC.  Help

  • I can receive emails through Outlook, but I can't answer or launch an email

    Original title: 550 5.1.1 User unknown I get this message. I know that the e-mail address is correct as I have emailed this person a few days ago. I can the emails received through Outlook, but I can't answer or launch an email. Can someone tell me p

  • Local Print Spooler Service is not running...

    I have a HP Officejet pro 8600, which was acquired in may 2014.  The printer has stopped working on the print commands from the PC, which is a HP Pavilion.  I tried several methods, including the closure of all of the network modem, router comouter a