In the system I am using file_exists
to see if the image exists in the directory, the problem is that it always returns false
even the image existing in the directory, I have already done almost all possible tests and still returns false
.
Code:
<?php
$Image = "http://megaki/uploads/windows/173/1731534093656.jpeg";
if (file_exists($Image)) {
echo "O arquivo $Image existe";
} else {
echo "O arquivo $Image não existe";
}
?>
When running, returns the message:
O arquivo http://megaki/uploads/windows/173/1731534093656.jpeg não existe
The directory is correct when I create the directory I give permission 077
and even then I can not resolve it I am already 2 days trying to solve it and I can not.