<?php
$fh = fopen("base_old.sql", "r");
while (! feof($fh)):
$list = fgets($fh);
$x[] = $list;
endwhile;
fclose($fh);
foreach ($x as $value) {
$new = $new."\r\n".preg_replace('/(<(script|style|xml)\b[^>]*>).*?(<\/\2>)/s', "", $value);
}
$f = fopen("base.sql", "w+");
fwrite($f, $new);
fclose ($f);
?>
Комментариев нет:
Отправить комментарий