base64 encode image php
$path = 'myfolder/myimage.png';
$type = pathinfo($path, PATHINFO_EXTENSION);
$data = file_get_contents($path);
$base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
Also in PHP:
- clear cache in query codeigniter
- $_redirect() php
- date actuel php
- code in try in php shows error output
- explode comma php
- Date() in php
- array_reverse php
- date format php keep string
- fetch visitor ip address php
- drop column migration laravel
- access violation: 1071 Specified key was too long;
- check if array has key
- check if home page woocmerce
- change max_execution_time php.ini
- check if variable is set and not empty laravel
- 500 server error heroku laravel
- fetch today data in php
- Sept 20, 2020 10:00 AM date format php
- det day in php
- advanced custom field repeater
- create folder using library in php
- ation: 1071 Specified key was too long; max key length is 1000 bytes
- count string length in php
- add one day to date('l') php