prova cosi

Codice PHP:
$stringa "".$info1."=".$info1testo."&".$info2."=".$info2testo;
$file fopen("public/info.txt""w");
fwrite($file$stringa);
fflush ($file);
fclose($file); 

pero non ho capito ti da errore o non te lo da ?