Searching

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!

Moderator: General Moderators

Post Reply
mleskine
Forum Newbie
Posts: 7
Joined: Fri Feb 14, 2003 6:44 am

Searching

Post by mleskine »

Hi, i'm trying to put up a search for a string inside files from a certain directory and subdirectories. Found a small php script, but it's too slow to be used. So i am using findstr command from commandline. My problem is that i'd like the output to go to a text file, like "findstr /m/i/s/d:c:\directory "string" *.* >Textfile.txt"
But php doesn't seem to understand the > before the textfile where the output would go. Anyone have any alternatives for handling string search or have done this way?
thanks
EDIT:
Ok i got the output to file now pretty good, but still have a problem With scandic characters like Ö Ä and Å. I can easily echo out scandic chars, but can't pass the to commandline properly. Any help is greatly appreciated.
Post Reply