Posted by Bernd Roth on 12/17/05 16:19
Hello NG,
I want to wirte a photoalbum in php.
So far I am now.
<html>
<body>
<div>
<?php
$dirname="/srv/www/htdocs/dateien/";
$dh = opendir($dirname);
$file=array(readdir($dh));
for($i=0;$i<4;++$i){
print '<tr>'
print '<td><img src="$file"></td>';
print '</tr>';
}
closedir($dh);
?>
</div>
</body>
</html>
The problem now is that my HP only shows an empty image, as if apache cannot
find any picture.
Here we can see it:
www.roth-bernd.com
Can someone help me please with this error?
Thanks in advance
Friendly,
Bernd
Navigation:
[Reply to this message]
|