base 64 image encryption using 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:
- How do you clear cache in Laravel?
- current server in laravel
- Impossible de trouver le paquet php-gettext
- check if string is in another string php
- extend php maximum execution time
- displaying current date in php
- Fatal error : Allowed memory size of 134217728 bytes exhausted
- composer require laravel/ui not working laravel 7
- catch multiple exceptions php
- date + 14 days php
- Auth::user() id
- extract contact page url php
- Composer detected issues in your platform: Your Composer dependencies require the following PHP extensions to be installed: fileinfo
- execute query and use die in php
- catch exception php
- convert date to times php
- base64 image encode php
- docker lumen phpunit the request php extension dom is missing
- current date string in php
- How do I check if a string contains a specific word php
- PHP Password Generator
- M-d h:i:a
- catch error php
- add bootstrap class to checkout fields woocommerce