The project is a slideshow , it must go through a specific directory where a jpg
image file is located, this file will be named TEMP_IMAGE1.jpg
, and when it opens it will be displayed for the user in the browser. At each 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?
-
It should contain a control variable for the interval between the transition from one image to another.
-
If 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.
)
I am a developer of another language, I do not have advanced knowledge in php , a project like this requires domain under the language, I have no interest in ready codes, I want "guidelines" from some "expert" so that I can position myself correctly in my studies.