Slideshow in directory

Asked

Viewed 50 times

0

The project is a slideshow, it should go through a specific directory where an image file is found jpg, this file will have the name of TEMP_IMAGE1.jpg, and when opened will be presented to the user in the browser. Every iteration of the loop to load the next image, the file name should be incremented to +1 (in case: in the second iteration the name will be TEMP_IMAGE2.jpg.. and so on...).

What is the best way to write the algorithm in PHP ?

  • Must contain a control variable for the interval between the transition from one image to another.

  • If case the image file TEMP_IMAGEX.jpg does not exist or fails during its opening, the next iteration should continue trying to read the same file.

  • A control button, Stop/Start (to pause, and continue Slideshow)

I am a developer of another language, I have no advanced knowledge in php , a project like this requires mastery under the language, I have no interest in ready codes, want "guidelines" of some "expert" so that I can position myself correctly in my studies.

  • As you said yourself, it’s very advanced, maybe not as advanced, but it requires logical reasoning to define the application, and time, something that a lot of people here don’t always have at their disposal, it’s very unlikely that you’ll get help with a full script, made from the base, whereas you have no part of it ever made. Good Luck.

  • As I said above, I only need guidelines to position myself in studies, which function to use among other things.. logic is already done, I have this application running in c++, I just need to rewrite in php.

  • 1

    Add the code in C++ already done, would be anything, but still the chances of getting help to rewrite, the application remains few, depending on the number of lines, complexity. Anyway, run it, see if anyone answers the call.

  • As far as I know, it is not possible a PHP slideshow and this would only be used to go through the directory and extract an array with the images -this is kind of easy, there are several examples on the web. After that it would be CSS, Javascript or jQuery... too, a lot of example around (see example of slideshow with pure CSS). A melhor maneira is the one that meets your specific requirements, there is no formula ready.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.