Return to Snippet

Revision: 1062
at September 6, 2006 10:11 by dandyna


Initial Code
<form method="post" enctype="multipart/form-data" action="function.php">  
<input type="file" name="documento">
<br>
<input type="submit"  value="INVIA">
</form>
<? 
$cartella="photo";
$directory=opendir($cartella);

while($files=readdir($directory)) 
{
if ($files != "." and $files !="..")
print $files."<br>";
}


?>

Initial URL
http://dandyland.org/code/image-gallery-script/

Initial Description
File admin.php di una galleria di immagini in php - Function.php file to include in an image gallery php script

Directory structure:

Gallery(main directory)
_admin.php
_function.php
_photo(directory)
__image1.gif
__image2.gif

Initial Title
Image gallery script: admin.php file

Initial Tags
php, image

Initial Language
PHP