Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7872437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:12:01+00:00 2026-06-03T02:12:01+00:00

Im using PHP Active Record – Does anyone know how you kill a connection

  • 0

Im using PHP Active Record – Does anyone know how you kill a connection?
I need to kill it, so I can re-connect and have a fresh connection rather than leave it idle until it expires.

This is how I instantiate it:

    ActiveRecord\Config::initialize(function($cfg) {
        $cfg->set_model_directory(APPLICATION_PATH . 'model');
        $cfg->set_connections(array('development' => DB_TYPE.'://'.DB_USER.':'.DB_PASS.'@'.DB_HOST.'/'.DB_NAME));
    });

I have tried this, yet it is not a method:

ActiveRecord\ConnectionManager::drop_connection();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:12:02+00:00Added an answer on June 3, 2026 at 2:12 am

    It looks like it is working so far when I updated to the latest Github PHP Active Record which has quite a few different files. I was confused as the ZIP on their site is very out of date versus the GitHub.

    The new copy seems to have an auto-restablish, I didn’t have to do this manually (yet)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have any recommendations for implementations of ActiveRecord in PHP? I've been using
I am trying to create a tree of pages using PHP Active Record and
I can't seem to ascertain whether or not the PHP Adodb Active Record, DB
Using PHP, I can convert MySQL data or static table data to csv, Excel,
Using PHP, I am trying to delete a record, but I want to check
using php and mysql I have two tables, a users table and a profiles
Using PHP's Image and GD functions you can use the following method to finally
using php, i have a sql query which works fine, dateentry only has the
I am using php includes to limit redundancy on my pages, how can I
I have several web applications developed using PHP and would like to set these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.