I cannot write to a file with the fputs function.
I can read to the same file with fgets but I cannot write to the same file with fputs.
The code is the following:
$valor="Hello";
$fichero=fopen("trafico.txt","w");
fputs($fichero,$valor);
fclose($fichero);
I cannot write with fputs.
Moderator: General Moderators