-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.php
33 lines (26 loc) · 901 Bytes
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php require 'vendor/autoload.php';
// $host = "localhost";
// $db_name = "planner";
// $username = "root";
// $password = "";
// try{
// $conn = new PDO("mysql:host=" . $host . ";dbname=" . $db_name, $username, $password);
// echo "connection established";
// }catch(PDOException $exception){
// echo "Connection error: " . $exception->getMessage();
// }
/*if(isset($_GET['cmd'])){
exec('git remote -v', $output, $return);
foreach ($output as $value) {
echo $value ."\n";
}
}else{
echo "No Command Issued";
} */
//sendmail('kmaina@clemcreativity.com','Kevin Maina','Test','Just testing');
//sms('+254724844946','The Planner');
//echo isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : 'not there';
//print_r($_SESSION);
$db = new Database();
$test = new Test($db->conn);
echo $test->hello();