Remove the first line [ti:] [ar:] [al:] [by: cww.99Lrc.net] [. 59] dasfdasfasdf [. 18] dafadsf missing? Phpforeach (newDirectoryIterator (.) as $ fileInfo) {if ($ fileInfo-isDot () continue; if ($ fileInfo-getExtension () lrc) {$ handlef
Remove the first line [ti:] [ar:] [al:] [by: cww.99Lrc.net] [. 59] dasfdasfasdf [. 18] dafadsf missing? Phpforeach (new DirectoryIterator ('. /') as $ fileInfo) {if ($ fileInfo-isDot () continue; if ($ fileInfo-getExtension () = "lrc") {$ handle = f
Remove the first lines in the lrc File
[Ti:]
[Ar:]
[Al:]
[By: cww.99Lrc.net]
[00:00. 59] dasfdasfasdf
[00:30. 18] dafadsf <无>
isDot()) continue; if($fileInfo->getExtension()=="lrc"){ $handle = fopen($fileInfo->getFilename(), 'rw'); $line_num=0; while(!feof($handle)){ $str=fgets($handle, 1024); if(strstr($str, "www.99Lrc.net")){ ob_start(); fpassthru($handle); //fclose($handle); file_put_contents($fileInfo->getFilename(), ob_get_clean() ); printf('done'); break; } $line_num++; } fclose($handle); echo $fileInfo->getFilename() . PHP_EOL; }}