convert image to base64 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:
- check id the division is not giving rest php
- $data length in php
- PHP Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in /var/www/html/magento/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121
- add datetime to datetime php
- create a project in laravel
- create seed in laravel
- not null in laravel
- console log php inside string
- datetime with current date pho
- Unhandled exception on throw php
- check array key exists not in array php
- /phpspreadsheet 1.15.0 requires ext-dom * centos yum
- don't show warning php
- Class 'App\Http\Controllers\Admin\Route' not found
- Multi-idiomas com PHP
- clear all caches laravel
- error reporting off
- Allowed memory size of 1610612736 b
- display php eror
- current date y-m-d php
- date php D
- convert any phone number in us number format php
- check if key exists in array php
- date fonction php