convert image path 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:
- error reporting off php
- a.length en php
- array check duplicates php
- composer artisan
- ERROR: Could not enable dependency mpm_prefork for php7.4, aborting
- duplicate array values php
- ternary if in blade
- exec output php
- extract contact page url php
- codeigniter.com cart
- array reverse sequence pp
- codeigniter last id inserted
- change the format of date c#
- cache clear command in larvel
- db seed specific seeder
- acf auto increment field
- clear cache is not working laravel
- cannot use object of type stdclass as array
- can we seed test database in laravel with seeder?
- extract($user_input); alternative php
- date with time in php
- create array from string with commas php
- ADD OR ON SWITCH CASE PHP
- Error: Class 'Database\Factories\UserFactory' not found