Solved

Zend DB Adapter AutoReconnect via Config Ini

Posted on 2010-09-01
4
1,061 Views
Last Modified: 2012-05-10
I'm working with the Zend PHP framework. My MySQL connection is timing out at the end of a lengthy script. How would I set up the DB Adapter to auto-reconnect through the application.ini file where the db params are set?
0
Comment
Question by:brettfarris
4 Comments
 
LVL 10

Accepted Solution

by:
NetExpert-Warszawa earned 500 total points
ID: 33599555
Try resources.db.params.persistent = 1

See http://zendframework.com/manual/en/zend.db.adapter.html starting from "Note: Does Zend_Db Support Persistent Connections?"
0
 

Author Comment

by:brettfarris
ID: 33599705
I'll give it a try and let you know. Thanks
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 34221404
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now