Hi everyone, I need to search for a string in all the html files of a directory. The problem is that i have to program this to be multi-plattform, so i cant use linux commands. I cant find any PHP native function to do this easily. What can i do? I thought about going like this... /*read all files to an array*/
foreach($files as $file) { $fp=fopen($file,filesize); $file_string=fread($fp,filesize); /*search for the string in $file_string*/ if <found> {return xxx; exit;} fclose($file); } but i dont like this... it sounds slow and not proffessional... any ideas? Thank u all. William Stark -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php