This can be a very simple question. I work in the / mobile directory and I have photos in the / uploads directory.
I get an error message:
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
I put this in the variable $ dir = "http://www.yoozpaper.com/uploads"
for the image src=$dir/$file .
Please note that this works when I work with files in the main directory.
Any help on this would be greatly appreciated.
Code below:
$dir = "http://www.yoozpaper.com/uploads";
// open the directory
if ($opendir = opendir($dir)) {
// read the directory
while (($file = readdir($opendir)) !==FALSE) { if ($file==$imagename)
// can indicate height and width below
echo "<img width='75%' height='30%' src='$dir/$file' title='$headline - Yoozpaper News Online' alt='$headline'><br /><br />";
source share