Publish all images of a directory automatically. Add title, description, home-link. Exclude files of your choice.
Download
View Source (print view)
Rating : 4.7
Views : 339
// This file publish.php publishes all files of the specified directory straight, or into a table
// remove comments and unnecessary lines
$home="http://tkom.ch"; // path absolute or relative to the homesite
$path="./images/images/"; // path absolute or relative to the directory of this file or the file where this file is included to.
// this directory must contain ONLY the images you want to be published (on background images or buttons etc.)
$folder = dir($path);
// leave the echo statement out if you don't need font definitions, title or explanations
echo"<font face='Courier New, Courier, mono' size='+3' color='#FF6633'>
<h3>TITLE</h3></font>
<p>Explanations shown above the pictures<p><a href='./publish_all_image_files_of_directory.zip'>Download script</a><p>";
// <table> // into table --> below comments
while($file=$folder->read())
{
if ($file !="." and $file !=".." and $file !="WS_FTP.LOG") // adapt if you want to exclude other files
// echo"<tr><td><img src="$path$file"></td></tr>"; // into table (table shown only after all images are loaded!)
echo"<img src="$path$file"> "; // replace this line by above line if you want to publish into a table
}
// </table> // into table --> above comments
$folder->close();
echo"<p><a href='$home' target='_parent'>HOME</a></font>";
?>
fedex, call php', userstatusinonline, php_script"_class="neww"_target="_blank"_title="im_neuen, best ide, php script" class="neww" target="_b..., forum, p t test paired, guest, php_tools, href php function, utfraw, php jobs, php script and char(124) (select cast(count(1) as varchar(8000)) char(124) from [sysobjects] where 1=1)>0 and =, commit, gonzo_florin, yahoo status check, rss, mysql, php simple search, yahoo_status' and char(124) (select cast(count(1) as varchar(8000)) char(124) from [sysobjects] where 1=1)>0 and ''='