Solved

Zend DB Adapter AutoReconnect via Config Ini

Posted on 2010-09-01
4
1,057 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
Comment Utility
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
Comment Utility
I'll give it a try and let you know. Thanks
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

743 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

12 Experts available now in Live!

Get 1:1 Help Now