I want to write a certain code on a particular line of a file with PHP.
<?php
$arquivo_origem = "client.php";
$arquivo_destino = "copiado.php";
if (copy($arquivo_origem, $arquivo_destino)){
echo "Sucesso!";
}
$teste = "Eu sei";
$handle = fopen( $arquivo_destino, 'a+' );
$ler = fwrite( $handle, $teste );
// Fecha o arquivo
fclose($handle);
?>
I wanted to write my $ test variable on line 17 of my $ target_file.
In case I do?