Posted By

dandyna on 09/06/06


Tagged

php image gallery


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

dandyna
visualAesthetic
vali29
willcodeforfood


Image gallery script: admin.php file


 / Published in: PHP
 

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

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

  1. <form method="post" enctype="multipart/form-data" action="function.php">
  2. <input type="file" name="documento">
  3. <br>
  4. <input type="submit" value="INVIA">
  5. </form>
  6. <?
  7. $cartella="photo";
  8. $directory=opendir($cartella);
  9.  
  10. while($files=readdir($directory))
  11. {
  12. if ($files != "." and $files !="..")
  13. print $files."<br>";
  14. }
  15.  
  16.  
  17. ?>

Report this snippet  

You need to login to post a comment.