Question and answer is powered by AnsPress.io
Why it shows me this error: HTTP/1.1 404 Not Found in PHP
when I use this code in PHP
<?php
$link = ‘path/to/image.ext’;
if(!file($link)) {
//Image is not avail
} else {
echo ‘<img src=”‘ . $link . ‘” />’;
}
What can I do for solve this problem?