Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Find Similar Named Files on Remote Server

$
0
0

I have an image name (pic01.jpg) and the directory it lives in on the remote server ( I also have permission to be there). I know that in many cases there will be a small stack of images that together make a set like, pic01.jpg, pic01_blue.jpg, pic01_yk7z.jpg, pic01_8m.jpg...

 

I know I can use curl to get a response code but then I'd have to know the name of the file first. I believe this will be a small job using Regex. Trouble is every time I begin to read about Regex my eyes glaze over so I'm really not sure.

 

Your help is greatly appreciated.

 

John


Viewing all articles
Browse latest Browse all 13200

Trending Articles