file_get_contents 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:
- access PHP error log
- array key contains php
- check if keys exists array php
- display errr php
- enable php errors for file folder
- PHP Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt()
- call a seeder in databaseseeder laravel
- empty laravel cache
- configure laravel on windows
- Upload image laravel 6
- element cakephp
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; m ax key length is 767 bytes (SQL: alter table `users` add unique `users_email_unique`(`e mail`))
- auto generatd number mixed with strings php
- 500 server error laravel 7
- base64 decode php function
- Get last id in laravel
- crear un seeder laravel
- $this
- data format in php
- accepts a, b, c, date and prints below the results together with the current date php
- clearing cache on live site laravel
- delete route method in laravel
- disable register in laravel
- clear laragon cache