base64 image encode 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:
- find a file in php
- check value in array key
- add two numbers in php
- convert string to timestamp php
- file_get_contents() ssl operation failed with code 1
- ajout d'heure à une date php
- drupal/core 9.0.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- errors and excpetion handling in php
- FORCE CAPS LOCK PHP
- execute script php command line
- create lavarel project backend
- creat laravel project
- CONTAIN PHP
- PHP securely hash a password
- Schema::defaultStringLength(191)
- database date time format in php
- create folder in php
- activity log spatie
- 500 server error laravel
- command line how to create folder and file php
- date time format in php
- console.php
- acf get row index
- ? for types in php