I am trying to add clockwork in vanilla php application. so trying to add in a just index.php file. but it does not show any data to the browser extension or toolbar.
how to install clockwork in a vanilla php application. my code:
<?php
require_once 'vendor/autoload.php';
use Clockwork\Support\Vanilla\Clockwork;
I am trying to add clockwork in vanilla php application. so trying to add in a just index.php file. but it does not show any data to the browser extension or toolbar.
how to install clockwork in a vanilla php application. my code:
<?php require_once 'vendor/autoload.php'; use Clockwork\Support\Vanilla\Clockwork;
$clockwork = Clockwork::init (); $db_type = 'pgsql'; $dbConn = "localhost"; $dbName = "ossDB"; $db_user = "postgres"; $db_pass = "1234"; $db_port = 5432;
function qry($qry, $return = 1){ global $dbConn, $dbName, $db_user, $db_pass, $db_type, $db_port, $clockwork; try { $dsn = "$db_type:host=$dbConn;port=$db_port;dbname=$dbName;user=$db_user;password=$db_pass"; $myPDO = new PDO($dsn); } catch (PDOException $e) { echo $e->getMessage(); }
} $users = qry("SELECT * FROM users"); ?> <!DOCTYPE html>