我有一个保存文件的文件夹。此页面用于检索这些保存的文件。名为“flower.jpeg”的图片位于该文件夹中,并且我试图使用图片标签显示图片,如下所示。我有两个选择,但他们都没有工作。如何显示一个文件夹中的图片php
<!DOCTYPE html>
<html>
<body>
<?php
$picture=flower.jpeg
$playfile='/upload/$picture';
?>
// <img href= '<?php $playfile ?>' width="800" height="600">
// <img src= '<?php echo $playfile; ?>' width="800" height="600"> <br>
<script>
document.write('<a href="' + document.referrer + '">Go Back To Chat</a>');
</script>
</body>
</html>
当你尝试时会发生什么?服务器日志中报告了哪些错误?直接列出'/ upload /'是什么样的? – Quentin 2013-03-27 12:25:40
你的代码是正确的,路径(playfile)可能是错误的。 – 2013-03-27 12:25:46
该文件夹上传是在这个HTML代码 – user2116287 2013-03-27 12:27:12