Page 1 of 1

Searching

Posted: Tue Mar 11, 2003 1:10 am
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.