You are here: Re: Photoalbum in PHP « PHP Language « IT news, forums, messages
Re: Photoalbum in PHP

Posted by Richard Morton on 12/19/05 18:02

Hi,

I guess it depends what the end result is... Are you doing this becuase
you have to, because you want to learn the language, or because you
_need_ a photoalbum...

If the latter there are lots of systems available. Photoalbums are
actually more complex due to the graphics manipulation( to create
thumbnails) and indexing issues, not to mention privileges to define who
can see, who can upload etc.

have a look for

gallery
phpgraphy

to name but two well supported open source solutions.

HTH

Richard

Bernd Roth wrote:
> 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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация