开发者

echo "<img src=".$file." >" ; doesn't display image [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.
echo "<img src=".$file." >" ; 

does not display image, while $file points to the correct image location C:\wamp\www\formulae\public\images\13.png

开发者_如何学Gopart of code reads as follows

$file = LIBPATH.DS.'images'.DS.$id.'.png' ;
if(file_exists($file)){
echo $file."</br>";
echo "<img src='".$file."' >" ;

}


<img src="<?php echo file_dir . '/' . $imageone; ?>" height="100" width="100"/>

would help you


Try this

echo '<img src="'.$file.'">';


You should use paths relative to your Apache document root and not absolute to your file system.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜