PHP fputs May 11, 2012 Pramod T P Its an alias of fwrite() and writes to a file Example <?php $fp = fopen(‘test.txt’, ‘w’); fputs($fp, “phpcodez”); fclose($fp); ?>