base code 64 a image in 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:
- Carbon\Traits\Units.php:69
- console data in php
- cakephp pagination
- current date display in php
- display folder contents php
- error log display
- como destruir uma variavel de sessão
- $date php
- add d4 days in php\
- create php artisan install
- date format create in php
- date u php
- catch multiple exceptions php
- Call to a member function delete() on null laravel 8
- Connecting to Database sql
- downloading php latest version for ubuntu 20.04 using terminal
- composer update php mbstring.so missing
- clear the saved cache of my laravel websitefor all the users
- array key exists php after submit
- codeigniter where_not_in
- date time from timestamp php
- cacert.pem file_get_contents openssl
- fetch files from directory php
- array unique in php using a column