Solved

Zend DB Adapter AutoReconnect via Config Ini

Posted on 2010-09-01
4
1,073 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 143

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
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 create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

821 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