how to dymanic load image from directory into web page??
Posted: Sun Mar 07, 2010 10:33 pm
I am looking for direction as to how to accomplish this task. Here is what I would like to do:
1. I have a directory on my web server called images. In this directory I have files called 1.jpg, 2.jpg, ....1000.jpg.
2. I want to read the FIRST image in this directory into a webpage. The first time it will be 1.jpg, the next time the page is loaded it will be 2.jpg.
3. I want to allow the users to see this image and type in a new file name for this image and the click submit.
4. On submit I would like three things to happen on the server. 1. The image to be saved with new name in the image2 directory. 2. The original image to be removed from the image directory. 3. Load the next image in the image directory and give the user the ability to rename it.
5. This becomes a loop at this point.
Any pointers as to how I would accomplish this using php I would appreciate it.
Thank you all
Rickpo12
1. I have a directory on my web server called images. In this directory I have files called 1.jpg, 2.jpg, ....1000.jpg.
2. I want to read the FIRST image in this directory into a webpage. The first time it will be 1.jpg, the next time the page is loaded it will be 2.jpg.
3. I want to allow the users to see this image and type in a new file name for this image and the click submit.
4. On submit I would like three things to happen on the server. 1. The image to be saved with new name in the image2 directory. 2. The original image to be removed from the image directory. 3. Load the next image in the image directory and give the user the ability to rename it.
5. This becomes a loop at this point.
Any pointers as to how I would accomplish this using php I would appreciate it.
Thank you all
Rickpo12