PHP image slideshow auto

A solid implementation of an image slideshow gallery. Fully automated, no setup needed.

Usage

For a quick setup:

1. Create a folder for the slideshow images.
2. Drop images for the slideshow in the folder.
3. Grab the code, paste it in a file and call it "index.php"
4. Upload this file to a directory that will be the gallery (http://www.site.com/slideshow/)
5. Change lines 6 and 8 to correspond to your setup.
6. Run it (use URL from step 4)

 

Comments

Posted on 07.06.2014 21:46 by guest

Thank you so much for this wonderful php SlideShow.

Posted on 06.04.2013 07:11 by guest

Thanks

Posted on 28.10.2012 00:04 by guest

Cant seem to figure out where to get the images from, i cant seem to understand your variables XD

Posted on 07.10.2012 12:56 by guest

Not bad but a bit misleading as you said auto, in fact we have to press next. Maybe you could do one for auto ie the image changes on its own with the user not needing to press anything :)

Posted on 18.08.2012 21:20 by guest

Yes, it works for defined sized pics... Big pics, not so nice. But, it's a starting point. Thanks!

Posted on 26.07.2012 22:08 by guest

good, thanks

Posted on 12.07.2012 12:01 by guest

doesnt work for me

Posted on 27.06.2012 03:06 by guest

Thanks for the code. You did a good job.
But I have one problem. I couldn't open big sized photos.
Did you set image size anywhere?

Posted on 25.06.2012 08:04 by guest

i have failed with the editing of lines 6 and 8, for those who succeeded, please show me how you made your changes. thanks

Posted on 09.06.2012 01:59 by guest

Thanks and keep it up........,

Posted on 09.05.2012 07:00 by guest

DEMO example is really needed to really understand what i am developing and if it is really what i need.

Posted on 16.04.2012 23:53 by guest

I am new to PHP but and I am looking for some code to create a slideshow. Can anyone email me and explain the code to me a bit better.my mail id is srinivas.waterdrop01@gmail.com

Posted on 02.04.2012 17:29 by guest

I can't get my image to show??? and I don't understand this,,,, so close.

To solve the problem of not displaying the image use this code on line 129 to 134: Use the complete <?php ?> for all php open and close tags.
-----------------------------------------------

<?php echo $caption; ?>

First | PreviousNext | Last

-----------------------------------------------

Posted on 27.03.2012 06:35 by guest

I am new to PHP but and I am looking for some code to create a slideshow. Can anyone email me and explain the code to me a bit better as I am trying to figure it out but just seem to be very confused and unable to get the script working.
leahmo20@yahoo.it thanks a million!

Posted on 14.03.2012 15:47 by guest

this is good...wow

Posted on 14.03.2012 05:08 by guest

To achieve order in images add the line
sort($this->files_arr);
before the line
$_SESSION['imgarr'] = $this->files_arr;

Posted on 12.03.2012 10:53 by guest

from: www.hostwifi.com

To solve the problem of not displaying the image use this code on line 129 to 134: Use the complete <?php ?> for all php open and close tags.
-----------------------------------------------



<?php echo $caption; ?>

First | PreviousNext | Last

-----------------------------------------------

Posted on 12.03.2012 10:15 by guest

*what shall i name the images...(correction)

Posted on 12.03.2012 10:14 by guest

Please help....my directory path is C:/wamp/www/images/slideshow , what shat i name the images? they are .jpg extention. I tried img1.jpg, img2.jpg, I tried 1.jpg , 1.jpg it doesnt work. Please help, aside from the two lines of code to modify in lines 6 and 8 are there any more to modify? Thanks...

Posted on 27.02.2012 08:28 by guest

good?

Posted on 25.01.2012 11:04 by guest

Good job Man,Sharing ideas,Thank you very much

Posted on 21.01.2012 15:27 by guest

The program works great! Your instructions were clear and easy to understand.

Posted on 22.12.2011 13:20 by guest

Thanks a lot, great script! Had to made a few changes to use it for multiple galleries, but it works fine.
Why don't you put a demonstration on your page? Would be helpful.

Posted on 19.12.2011 23:59 by guest

kool.... :)

Posted on 09.12.2011 14:30 by guest

This works perfectly so far! However, it sorts through the photos in the gallery folder in a random order. Is there a way to specify the order in which the photos are loaded? Thanks!

Posted on 01.10.2011 06:52 by guest

hello ,my name is david noori your scripts is very good but i need demo of your script.why you use not demo?
mydavid66@yahoo.com
i wate for your answer.thanks.by

Posted on 29.08.2011 14:32 by guest

not bad

Posted on 21.07.2011 02:35 by guest

Thanks, very useful!
What to write on line 8, if this php file and images are in the same folder?

Posted on 15.07.2011 02:16 by guest

good of u thanks for sharing

Posted on 09.06.2011 05:37 by guest

This is not an automated script dont user this instead of there are so manu available based on javascript

Nikhil Patel.

Posted on 12.05.2011 17:13 by guest

To find the absolute path:

<?php echo $_SERVER['DOCUMENT_ROOT']; ?>

1. Copy and paste the above code in a blank page
2. Save it as absolutepath.php
3. Upload it via FTP to the location where you intend to install your images for the slideshow
4. Open your favorite browser and enter the URL to point to this file:
- Example: http://www.your-site.com/absolutepath.php
5. That's it, you should have your absolute path displayed in the screen.

Found these instruction on: http://forum.mamboserver.com/showthread.php?t=80307

Posted on 23.04.2011 10:36 by guest

This code exposed a weird problem under Snow Leopard:\

If there's no /etc/php.ini, this code works fine. If there is, the PHP code prints out at the top of the page, beginning with "init()) != '') { header('HTTP/1.1 500 Internal Server Error'); ..." followed by an empty picture reference (question mark) and the First | Previous Next | Last anchors.

This prevents this nice little piece of code from working on properly configured commercial hosts. I would REALLY like to use it, but I don't know nearly enough about PHP admin/setup to solve this problem for myself.

Anyone having a solution, please email me at tomdeboni@comcast.net.

Thanks!

Posted on 23.04.2011 02:32 by guest

it won't work automatically....

Posted on 15.04.2011 07:55 by guest

Sorry i'm not Php programmer. Can nobody tell me in line 6 & 8 and example for me.

Posted on 03.02.2011 04:56 by guest

useful my site thank...

Posted on 10.12.2010 10:33 by guest

This blows to be honest....

Posted on 09.12.2010 18:25 by guest

Steve, I can't get this to load the image directory. Tried checking root and www settings on line 6 & 8, still no go? Help!

Posted on 29.11.2010 01:25 by guest

Thx, works fine only one problem. When U klick next the page uppdates, so itt will jump back to the top of the page. How can i fix?

Posted on 20.09.2010 08:22 by guest

I like this very much. I am a php programmer and Thank you very much for this code.

Posted on 17.07.2010 02:50 by steve

You will have to use Javascript setTimeout() for this.
It will be something along these lines:


(inside javascript tag at the bottom of the page)
setTimout("window.location.href='?img=<?=$next;?>';", 3000); // 3 secs

Posted on 16.07.2010 23:09 by guest

Nice job.

Any chance to have the images rotate automatically in an given interval?

Thanks for your reply,
Chris.

Posted on 15.07.2010 11:11 by guest

Good !!!! Thanks a lot

Posted on 09.06.2010 17:46 by steve

Reading for the text widget at the Wordpress.com site, I believe you
can add an iframe with the URL as src. Then the gallery will be displayed.
Just guessing, I am not a Wordpress user.

Posted on 09.06.2010 15:34 by guest

Can anybody help explain how you would do #6 in wordpress? How would you access this php from a text widget in your sidebar?

Posted on 09.05.2010 01:01 by steve

Here is a working page with the script:
http://bmwhandlebarrisers.com/gallery/idigallery.php

Posted on 04.02.2010 12:33 by guest

A demonstration of what the end result will look like would be nice :)

Posted on 23.01.2010 06:34 by zamg0d1

Can I add this to my own existing site?

Posted on 05.11.2009 12:59 by guest

Thanks a lot!

Posted on 29.11.2008 22:07 by guest

Not bad