ed
Member
Registered: 10th Sep 03
User status: Offline
|
Is there a simple way that I can have an images folder which will contain quite a few images and a script which will take the images from this folder and put them all onto a page using a bit of Javascript and or PHP without needing to log the file names of the images on a database or in the file?
Just so that I can keep on putting images into this folder and they will keep on adding themselves to the page with no hassle...
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
PHP would be the best option for this. The script itself is quite simple, just a directory handle which gives you an array which you then loop through making things look nice as you go.
Gets more complicated if you want thumbnails.
As a quick fix you could also just allow directory browsing as willay has done with fosho. Web server will organise it for you then.
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
Could allow directory browsing... It just needs to look a bit more pretty than that I think. I'll try using the PHP way. I'll have a look on php.net
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
Yeah there will be something out there to do it, if not get back on here and I'll knock something up.
|