PHP code example of prospress / hosts-helper
1. Go to this page and download the library: Download prospress/hosts-helper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
prospress / hosts-helper example snippets
use Prospress\Hosts\Helper;
$timeout = Helper::getHost()->getTimeout();
use Prospress\Hosts\Helper;
$are_queries_killed = Helper::areQueriesKilled();
use Prospress\Hosts\Helper;
global $wpdb;
if ( Helper::areQueriesKilled() ) {
Helper::getHost()->unhookQueryKiller();
}
$result = $wpdb->query(/* your long query here */);
if ( Helper::areQueriesKilled() ) {
Helper::getHost()->rehookQueryKiller();
}