Immagine-Mia

A php-function to display your pictures

How it works

If a visitor wants to see your web-page on which you included immagine-mia, his computer sends a request to the php-page on your server. Your server then needs to download the immagine-mia.php code from the immagine-mia server and include it on your php-page (This is done in with include("http://www.immagine-mia.php/immagine-mia.php");). In this way, you always work with to most recent version of immagine-mia and no manual updates are necessary.

Now your php-page can execute the function immagine("path_to_the_folder"); on your server. The function looks for directories in the specified path (in the example "Switzerland" and "Canada") and displays the first picture in them to your visitor.
By clicking on them, the thumbnails of the pictures are showed. If the thumbnails do not exist yet, the script will try to create them. This however will only work if it has writing permission to the thumbnail-folder.

Your visitor can now browse through your pictures, enlarge them and view them in slideshow. If you created a textfile with the same name as the picture, its content will be displayed as picture comment.

Working principle of immagine-mia