Skip to content

Instantly share code, notes, and snippets.

<?php
public function database_init($connection_type,$database,$pdo_options=array()){
$user = "";
$pass = "";
// Correct any possible issues that may have occured.
$connection_type = strval($connection_type);
// Check to make sure database driver is available
if(in_array( $connection_type,PDO::getAvailableDrivers())){
// Now we check to see what type of driver is usable now
switch($connection_type){
<?php
class DB extends PDO {
public function __construct($connection_type,$database){
$this->database_init($connection_type,$database,$connection_information=array());
}
public function database_init($connection_type,$database,$pdo_options=array()){
$user = "";
PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1 near ":table": syntax error' in /uptime/data.class.php:66
Stack trace:
#0 /uptime/data.class.php(66): PDO->prepare('SELECT * FROM :...')
#1 /uptime/data.class.php(78): DB->table_exists('users')
#2 {main}
thrown in //uptime/data.class.php on line 66
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1 near ":table": syntax error' in /uptime/data.class.php:66
Stack trace:
#0 //uptime/data.class.php(66): PDO->prepare('SELECT * FROM :...')
<?php
/*
Upcount Database Class
With great inspiration from Zula (tangocms.org)
Thanks for the suggestions and ideas!
*/
class DB extends PDO {
<?php
/*
Upcount Database Class
With great inspiration from Zula (tangocms.org)
Thanks for the suggestions and ideas!
*/
class DB extends PDO {
usb 5-1: new low speed USB device using uhci_hcd and address 2
usb 5-1: New USB device found, idVendor=04d9, idProduct=e002
usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 5-1: Product: USB LED Badge
usb 5-1: Manufacturer: FURI KEYSHINE
usb 5-1: SerialNumber: ˀ
generic-usb 0003:04D9:E002.0001: hiddev96,hidraw0: USB HID v1.10 Device [FURI KEYSHINE USB LED Badge] on usb-0000:00:1d.3-1/input0
There be Dragons... Seriously... Why are you here?
.%,
X:-x\',
X:/%;::\:X
X:l% ; :'\:X
X:l% : : '\:X
X:l% : : '\:X
b, b, X:/l% : : \:X
JPQ, JPQ, X:l% : : '\:X
.dP'd|._,=dPQq\ X:l%' : : '\:X
\`-\`-._
\` )`. `-.__ ,
'' , . _ _,-._;'_,-`__,-' ,/
: `. ` , _' :- '--'._ ' `------._,-;'
`- ,`- ' `--..__,,---' hh
____________
(`-..________....---'' ____..._.-`
\\`._______.._,.---''' ,'
; )`. __..-'`-. /
/ / _.-' _,.;;._ `-._,'
/ / ,-' _.-' // ``--._``._
,','_.-' ,-' _.- (( =- -. `-._`-._____
#!/bin/bash
PATH=/srv/http;
MASK=$PATH/*.*;
OUTPUTDIRECTORY=/srv/http/output;
echo "converting...";
for filename in $MASK; do
fullpath=$filename;
sum=`/bin/cat $fullpath | /usr/bin/md5sum`
output=$OUTPUTDIRECTORY/$sum.flv