Skip to content

Instantly share code, notes, and snippets.

View yusufheri's full-sized avatar
🏠
Working from home

YUSUF HERI yusufheri

🏠
Working from home
View GitHub Profile
@wapcrazut
wapcrazut / doctrine.yaml
Created November 24, 2019 21:33
Disable SQL ONLY_FULL_GROUP_BY in Doctrine (Symfony)
doctrine:
dbal:
driver: pdo_mysql
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8
options:
@timneutkens
timneutkens / fpdf-image.php
Created April 14, 2016 14:36
Insert base64 image data into fpdf
<?php
// load the 'fpdf' extension
require('fpdf.php');
// just for demonstration purpose, the OP gets the content from a database instead
$h_img = fopen('img.jpg', "rb");
$img = fread($h_img, filesize('img.jpg'));
fclose($h_img);
// prepare a base64 encoded "data url"