{% else-1 %}
Вот понадобилось мне в файлы *.php свой копирайт вначале добавить, а вручную делать лень было.

Написал такой скриптец *

                        
<?php 



$copyright = '/* by Haus*/';



foreach(glob('dir/*.php') as $file) {



echo 'файл '.$file.' скопирайтен =)<br/>';



file_put_contents($file, preg_replace('#^<?php#', "<?php
".$copyright."
", file_get_contents($file)));



}



?>
0 26 0
Без комментариев...