convert a image to base64 data in php and show image
$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 where key in associative array have a value
- dequeue recaptcha wordpress
- clear cache in laravel putty
- file_get_contents openssl error
- count characters php
- adding days in date, php
- eloquent run seeder
- create laravel project terminal
- composer global laravel
- date() today php
- apache php default date format 4 digits
- date function attributes in php
- adjacent post sort order by post title
- age date de naissance php
- date and time function in php
- Basic features of Exception Handling php
- base64_decode() output to header location
- error out of length in php
- current datae in php
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". You are running 7.2.33.
- define header in php
- best way to redirect with php
- adding days to time value in php
- clear cache laravel ubuntu terminal