searching for files in a directory with a specific structure.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a directory which has thousands of files based on date. 
for example
yyyymmdd-number(auto increment).txt
20050101-0001.txt,20050101-0002.txt............................20050101-0210.txt
20050102-0001.txt,20050102-0002.txt..............................20050102-0141.txt

and many other files, but i want to extract data from the files with the above format.

I have seen in the php documentation for reading a directory,but not files with a specific structure.i could not able to write the correct regular expression for the filename match.
can some one give an idea.

thanks
babu.


		
---------------------------------
Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux