<?php $subscriberInfo = "g@java2s.com"; $fh = fopen("./text.txt", "at"); fwrite($fh, $subscriberInfo); fclose($fh); ?>