why this wont work?
if ( file_exists($_SERVER['DOCUMENT_ROOT'].$dirfromroot)){
echo "<img id='imagen' src='$imgloc' >";
}
else {
echo 'No image to show!';
}
also tried
if ( file_exists($imgloc)){
echo "<img id='imagen' src='$imgloc' >";
}
else {
echo 'No image to show!';
}
Thanks!