Image gallery script: function.php file


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

File function.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. <?
  2. $cartella="photo";
  3. move_uploaded_file( $_FILES['documento']['tmp_name'],$cartella."/".$_FILES['documento']['name']);
  4. header("location:admin.php") //this permits to return to previous page
  5. ?>

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.