Raised This Month: $ Target: $400
 0% 

Read all files in a folder.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 09-06-2013 , 11:33   Read all files in a folder.
Reply With Quote #1

Hello everybody,

I'd like to read out the content of all files in a folder, the files aren't registered somewhere.
Basically I want something like this :

PHP Code:
for each file in folder
{
          for 
each line in file
          
{
                    
read out content
                    compare with a string
                    
return true or false if containi
          
}

I know how to do the "for each line in file" part, but I don't know how to get all files in a folder.
__________________
Kia is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode