[ad_1]
it turns out that I have a problem with the images. I have tried locally executing php artisan serve and without problems, but when I take the project to an apache server said image does not exist and I cannot obtain it, the apache 2.4 server is running on a win server 2012 locally. The code is the following
<?php
$file="file:///f:/work/sersoc/photos/" . $user_code . '.jpg';
if (file_exists($file)) {
$image = file_get_contents($file);
$image_codes = base64_encode($image);
} else {
$image_codes = null;
}
?>
I tried changing the path to
$file="file://10.10.20.5/work/work/sersoc/photos/" . $user_code . '.jpg';
This is the ip that refers to the disk that I have on the network where I have all the photos, but nothing changed
[ad_2]