Image gallery script: admin.php file


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.