PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm trying to set up a gallery of previous products. I am trying to find out how I would search a directory for files and then display them. Does anyone know a function that would do this?
e.g. In path /www/images/sold/ the script would search the dir for all the images and thumbnails then put in an img tag.
Now, how bout this one. My filenames are something like th_123.jpg. How would I get the 123 out of that? I tried substr but it breaks if the id is less or more than 3 chars.