Replace palava in txt using php

0

I have the following line in the txt file

#EXTINF:-1 tvg-id="Globorj.br" tvg-name="GLOBO RJ HD" tvg-logo="https://2.bp.blogspot.com/-

this line repeats several times.

I need to open txt and change the word tvg-name to NOME

I tried this: $handler = fopen ( 'uploads/' . $new_name , 'r' ) ; $nova_palavra = str_replace("tvg-name", "NOME", $handler);

But it did not work ...

    
asked by anonymous 16.01.2018 / 14:31

0 answers