Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomeArquivo = $_POST['nomeArquivo'];
- foreach ($arquivos as $a){
- $aq = fopen($a,"r+");
- while (!feof($aq)){
- $le = fgets($aq);
- if(preg_match("/arquivo.txt/",$le)){
- //realizar troca
- //salvar arquivo
- }
- }
- fclose($aq);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement