圖像是存在於我的服務器,但我無法找到或者顯示的圖像與下面的代碼PHP無法顯示圖像
$myimages='/uk/images/7.jpg';
echo $myimages;
echo '<img src="'; echo $myimage; echo '">';
if (file_exists($myimages)) {
echo "The file $myimages exists";
}
else {
echo "The file $myimages does not exist";
$myimages=$info['aw_image_url'];
echo $myimages;
}
代碼總是返回The file doesn't exist
也不顯示圖像的幫助。 代碼有什麼問題?
路徑測試其確定..... – user1972487 2013-03-09 15:26:59
你的變量是'$ myimages'但你輸出'$ myimage'。 – 2013-03-09 15:28:58
簡化這與一個陳述,而不是三個:'回聲'';'或更好還是'回聲'「;' – 2013-03-09 15:29:47