Come giustamente ti ha suggerito TopSeo, puoi usare un file di testo e le funzioni FOPEN() e FWRITE().