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
Cant seem to figure out where to get the images from, i cant seem to understand your variables XD
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 :)
Yes, it works for defined sized pics... Big pics, not so nice. But, it's a starting point. Thanks!
good, thanks
doesnt work for me
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?
i have failed with the editing of lines 6 and 8, for those who succeeded, please show me how you made your changes. thanks
Thanks and keep it up........,
DEMO example is really needed to really understand what i am developing and if it is really what i need.
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
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
-----------------------------------------------
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!
this is good...wow
To achieve order in images add the line
sort($this->files_arr);
before the line
$_SESSION['imgarr'] = $this->files_arr;
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
-----------------------------------------------
*what shall i name the images...(correction)
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...
good?
Good job Man,Sharing ideas,Thank you very much
The program works great! Your instructions were clear and easy to understand.
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.
kool.... :)
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!
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
not bad
Thanks, very useful!
What to write on line 8, if this php file and images are in the same folder?
good of u thanks for sharing
This is not an automated script dont user this instead of there are so manu available based on javascript
Nikhil Patel.
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
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!
it won't work automatically....
Sorry i'm not Php programmer. Can nobody tell me in line 6 & 8 and example for me.
useful my site thank...
This blows to be honest....
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!
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?
I like this very much. I am a php programmer and Thank you very much for this code.
You will have to use Javascript setTimeout() for this.
It will be something along these lines:
Nice job.
Any chance to have the images rotate automatically in an given interval?
Thanks for your reply,
Chris.
Good !!!! Thanks a lot
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.
Can anybody help explain how you would do #6 in wordpress? How would you access this php from a text widget in your sidebar?
Here is a working page with the script:
http://bmwhandlebarrisers.com/gallery/idigallery.php
A demonstration of what the end result will look like would be nice :)
Can I add this to my own existing site?
Thanks a lot!
Not bad