Immagine-Mia

A php-function to display your pictures

How to use it

  1. Download the example
  2. Extract all the files. Important: The directory structure must be exactly as it is.
  3. Upload the files in this directory-structure to your website, rename the main folder to any name you want.
  4. Inside the folder "pictures", create for every new topic a new sub-folder (See examples "Switzerland" and "Canada"). Don't forget to create a "thumbs" folder inside.
  5. Upload your pictures (in reasonable size) to this sub-folders.
  6. Thumbnails: If the script has write permission to the "thumbs"-folders, they will be created automatically for you.
    If it has no write permission, create them (same name as the large pictures) with any photo-editing software (i.e. GIMP) and upload them manually.
  7. Comments: Place textfiles with the same name as the pictures in "comment"-folders. Their content will be displayed as picture comment. If you do not place a file for a picture, no comment will be displayed (See examples "Switzerland" and "Canada").

Now your picture gallery should already be working. Simply use it by placing a link to the "index.php" file or by including the following php-code lines in the body part on any site you want:
include("http://www.immagine-mia.php/immagine-mia.php");
immagine("path_to_the_folder");

Note: If there is nothing happening, you may need to set "allow_url_include = On" in your php.ini file.

  • To remove pictures or "topics" simply delete their files and folders.
  • To change any of the texts displayed, or to translate them, edit the "language.txt" file.
  • To change the appearance, edit the "style.css" file. (Help)