PHP Classes

Snaps Album example.html

Recommend this page to a friend!

      Snaps Album  >  All threads  >  Snaps Album example.html  >  (Un) Subscribe thread alerts  
Subject:Snaps Album example.html
Summary:Error in this example.html
Messages:2
Author:Heinzel
Date:2009-03-19 10:00:33
Update:2009-03-19 14:31:15
 

  1. Snaps Album example.html   Reply   Report abuse  
Picture of Heinzel Heinzel - 2009-03-19 10:00:33
Hello,

sorry for my bad english.

I start example.html and i become this error.


0){ // Do not include any empty folders. $my_albums2[] = new SnapsAlbum($file, $dir); // create array of objects. } } } $alNum = 0; if (!isset($_GET['album_num'])) { // if the uri variable album_num is not set show all the albums with a framed random thumbnail from it.?>
get_snapsTitle(); ?>
Home
get_snapsTitle() ?>
get_snaps_images(); // load this albums images. foreach ($images_array as $img => $imgArray) { $snaps_filename = $img; if (is_array($imgArray)) { if (!isset($_GET['photo_num'])) { // if the URI variable photo_num is not set show all the thumbnails of $my_albums2[$currentAlbum]. echo ' '; } } $currentPhoto++; } if (isset($_GET['photo_num'])) { // if the URI variable photo_num is set, only show the relevant photo full size. $currentPhoto = (int)$_GET['photo_num']; $curr_dimensions = $my_albums2[$currentAlbum]->get_snaps_photo_dimensions($currentPhoto);
$curr_filename = $my_albums2[$currentAlbum]->get_snaps_photo_filename($currentPhoto); echo '
Back to “' . $my_albums2[$currentAlbum]->get_snapsTitle() . '”
'; echo ''; } } ?>


How can help me.

Best regards from Germany

  2. Re: Snaps Album example.html   Reply   Report abuse  
Picture of Matthew Peace Matthew Peace - 2009-03-19 14:31:15 - In reply to message 1 from Heinzel
Hello Heinzel,

For this example to work it needs to be placed onto a PHP5 enabled webserver. It would appear that you have tried to access the file directly without it being processed by PHP.

I have now changed the example file name to example.php to avoid any further confusion. For this example to work you need to download both php files and place them into the root folder of your server and then add a directory named 'photos' and then inside that place another folder containing jpeg images.

I hope this helps you,

regards,

Matt