PHP - Open or copy a file when knowing only part of its name?
Posted
by Gary Willoughby
on Stack Overflow
See other posts from Stack Overflow
or by Gary Willoughby
Published on 2010-04-22T15:10:08Z
Indexed on
2010/04/22
15:13 UTC
Read the original article
Hit count: 212
I have a huge repository of files that are ordered by numbered folders. In each folder is a file which starts with a unique number then an unknown string of characters. Given the unique number how can i open or copy this file?
for example: I have been given the number '7656875' and nothing more. I need to interact with a file called '\server\7656800\7656875 foobar 2x4'.
how can i achieve this using PHP?
© Stack Overflow or respective owner