Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
<?php | |
/** | |
* QR Code + Logo Generator | |
* | |
* http://labs.nticompassinc.com | |
*/ | |
$data = isset($_GET['data']) ? $_GET['data'] : 'http://labs.nticompassinc.com'; | |
$size = isset($_GET['size']) ? $_GET['size'] : '200x200'; | |
$logo = isset($_GET['logo']) ? $_GET['logo'] : FALSE; |
<?php | |
//set printing option to raw | |
$tmpdir = sys_get_temp_dir(); # ambil direktori temporary untuk simpan file. | |
$file = tempnam($tmpdir, 'ctk'); # nama file temporary yang akan dicetak | |
$handle = fopen($file, 'w'); | |
$condensed = Chr(27) . Chr(33) . Chr(4); | |
$bold1 = Chr(27) . Chr(69); | |
$bold0 = Chr(27) . Chr(70); | |
$initialized = chr(27).chr(64); |
If anyone's looking for a solution for licensing Sublime Text!
Here goes an easy tutorial on how to register, Sublime Text Version 3.2.2, Build 3211
<?php | |
use Mike42\Escpos\CapabilityProfile; | |
use Mike42\Escpos\PrintConnectors\DummyPrintConnector; | |
use Mike42\Escpos\Printer; | |
class RecieptPrinter { | |
/* Create divider */ | |
protected $divider; |
Alias /phpmyadmin /usr/share/phpmyadmin | |
<Directory /usr/share/phpmyadmin> | |
Options SymLinksIfOwnerMatch | |
DirectoryIndex index.php | |
<IfModule mod_php5.c> | |
<IfModule mod_mime.c> | |
AddType application/x-httpd-php .php | |
</IfModule> |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Aloha!</title> | |
<style type="text/css"> | |
* { | |
font-family: Verdana, Arial, sans-serif; | |
} |
<!-- Srouce From: https://jsfiddle.net/user/marksalvania/fiddles/ --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Canvas2PDF</title> | |
<style> | |
body { | |
background: beige; | |
} | |
<?php | |
function imgbb_upload( $image, $filename, $key ) { | |
$cfile = new CURLFile(realpath($image)); | |
$postfields = [ | |
"key" => $key, | |
"image" => $cfile, | |
"name" => $filename | |
]; |
<?php | |
class EAN13 { | |
private $code = null; | |
private $prefix = false; | |
public function __construct ($prefix = false) { | |
$this->prefix = $prefix === false ? false : (string) $prefix; | |
} | |