Re: Re: Making Thumbnails
| From: | Mark A Mucha | Date: | Mon, 24 Jul 2000 20:07:58 +0000 |
| Subject: | Re: Re: Making Thumbnails | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7957@lists.php.net to get a copy of this message | ||
Yes that may be fine on a intranet, but over the internet, are you going to
make the person wait for all of the "full" pictures download(that could be
megs).
----- Original Message -----
From: "Nart Bedin Atalay" <nart_bedin@yahoo.com>
To: "PHP General" <php-general@lists.php.net>
Sent: Monday, July 24, 2000 3:54 PM
Subject: [PHP] Re: Making Thumbnails
> Andrew, may be this code will help. You can find
> function explanations from manual.
>
> <html>
> <head>
> <title>
> Pictures from Members
> </title>
> </head>
> <body bgcolor=\"#000000\" >
>
>
> <?php
>
> $path="F:\php\is1\uppic";
> $handle=opendir($path);
> while($file = readdir($handle))
> {
> if ($file != "." && $file != "..")
> {
> $pictures[]=$file;
> }
>
> }
> closedir($handle);
> $total=count($pictures);
>
>
> print("<table cellpadding=\"0\" cellspacing=\"0\"
> border=\"0\" bordercolor=\"#ff0000\">");
>
>
> for($a=0; $a<5; $a++)
> {
> print("<tr align=\"center\">");
>
> for($b=0; $b<5; $b++)
> {static $bir=0;
> $fullpath=$path."\\".$pictures[$bir];
> if($total>$bir)
> {
> print("<td width=\"150\" height=\"150\"> <a
> href=\"$fullpath\"> <img border=\"0\" align=\"middle\"
> width=\"70\" height=\"70\" src=\"$fullpath\"> <a/>
> </td>");
> ++$bir;
> }
> }
> print("</tr>");
> }
>
> ?>
>
> see u.
>
>
> =====
> Nart Bedin Atalay
> nart_bedin@yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>