Hi Carol,
Ok back from 3 hours kip.
I can actually give the image names anything I want really. I want to make it as easy for the user as possible. Real Estate Agents aren't the most computer literate people around in SA. I have created the dir structure path/$Agency/$Town/$Category to make it easy for the user more than aything else. In order to make the file name unique, as we might get up to 5000 images I thought it best to link it to the ID. I started the ID's at 1000 thinking it would be make sense to delete 1000*.jpg in the appropriate dir and also to avoid what I previously thought was happening.
So the file names (1 large and 1 thumbnail) for ID 1 would be as follows:
1000RF3252.jpg
1000RF3252_small.jpg
Id 2 would be something like
1001RK2771.jpg
1001RK2771_small.jpg
It is possible that an image could be gif, but it would be very scarce. I need to keep this possibility open as I am hoping to adapt the cgi for other products.
I hope this makes sense.
Tks very much
G
Ok back from 3 hours kip.
I can actually give the image names anything I want really. I want to make it as easy for the user as possible. Real Estate Agents aren't the most computer literate people around in SA. I have created the dir structure path/$Agency/$Town/$Category to make it easy for the user more than aything else. In order to make the file name unique, as we might get up to 5000 images I thought it best to link it to the ID. I started the ID's at 1000 thinking it would be make sense to delete 1000*.jpg in the appropriate dir and also to avoid what I previously thought was happening.
So the file names (1 large and 1 thumbnail) for ID 1 would be as follows:
1000RF3252.jpg
1000RF3252_small.jpg
Id 2 would be something like
1001RK2771.jpg
1001RK2771_small.jpg
It is possible that an image could be gif, but it would be very scarce. I need to keep this possibility open as I am hoping to adapt the cgi for other products.
I hope this makes sense.
Tks very much
G