Skip to content

Instantly share code, notes, and snippets.

Đặng Xuân Cảnh uncelvel

View GitHub Profile
@chales
chales / db-connect-test.php
Last active Apr 23, 2019
Script for a quick PHP MySQL DB connection test.
View db-connect-test.php
<?php
# Fill our vars and run on cli
# $ php -f db-connect-test.php
$dbname = 'name';
$dbuser = 'user';
$dbpass = 'pass';
$dbhost = 'host';
$connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'");
You can’t perform that action at this time.