这可能是一个非常简单的问题。我在目录/手机上工作,我有照片在目录/上传。Opendir错误;没有找到这样的文件或目录
,我得到的错误:
Warning: opendir(http://www.yoozpaper.com/uploads) [function.opendir]: failed to open dir: not implemented in /hermes/bosweb/web088/b881/ipg.yoozpapercom/mobile/sportspage.php on line 313
,我把它变成变量$ DIR = "http://www.yoozpaper.com/uploads"
的图像src=$dir/$file
。
请注意,这是工作时,我在主目录中的文件。
任何帮助,将不胜感激。下面
代码:
$dir = "http://www.yoozpaper.com/uploads";
//开放目录
if ($opendir = opendir($dir))
{
//读取目录
while (($file = readdir($opendir)) !==FALSE)
{
if ($file==$imagename)
//可以指定以下
echo "<img width='75%' height='30%' src='$dir/$file' title='$headline - Yoozpaper News Online' alt='$headline'><br /><br />";
高度和宽度10
请插入您的php代码 – smoqadam 2012-02-06 06:08:13