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)

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. ?>


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.