hello and please excuse my clumsy english.
I'm really fresh in php (just want to make one small script for myself,
haven't fount such on net) and now I'm struggling with "calling one file
from some directory".
here is case:
have 10 dirs with picts, every dir have one subdir with thumbs.
have file with name of dir and owner of pics.
$f = fopen('autori.i nc', 'r');
while ($line = fgets($f, 4096)) {
list($dir, $ime) = split("\|", htmlspecialchar s($line));
$album = $dir;
$autor = $ime;
now, I would like to print one picture form each directory above the
name of the owner...
$handle = fopen("$album/thumb/*.jpg", "wb");
and, as can you see, I have no idea how to get that file... better to
say, I have ideas, but wrong.
here came place where I will use that image.
echo "<p class=\"image\" ><img src=\"$handle\" alt=\"$autor\"
height=\"64\" border=\"0\"></p>\n";
echo "<p class=\"autor\" ><a class=\"autor\"
href=\"album.ph p?album=$album& amp;autor=$auto r\">$autor</a></p>\n";
any suggestion? tip?
tnx.
Janko
--
Jan_ko?
--
I'm really fresh in php (just want to make one small script for myself,
haven't fount such on net) and now I'm struggling with "calling one file
from some directory".
here is case:
have 10 dirs with picts, every dir have one subdir with thumbs.
have file with name of dir and owner of pics.
$f = fopen('autori.i nc', 'r');
while ($line = fgets($f, 4096)) {
list($dir, $ime) = split("\|", htmlspecialchar s($line));
$album = $dir;
$autor = $ime;
now, I would like to print one picture form each directory above the
name of the owner...
$handle = fopen("$album/thumb/*.jpg", "wb");
and, as can you see, I have no idea how to get that file... better to
say, I have ideas, but wrong.
here came place where I will use that image.
echo "<p class=\"image\" ><img src=\"$handle\" alt=\"$autor\"
height=\"64\" border=\"0\"></p>\n";
echo "<p class=\"autor\" ><a class=\"autor\"
href=\"album.ph p?album=$album& amp;autor=$auto r\">$autor</a></p>\n";
any suggestion? tip?
tnx.
Janko
--
Jan_ko?
--
Comment