hi guys can you tall me what is missing? $msg = 'This is a sample msg.'; $file = 'sss.txt'; $fh = fopen('sss.txt','w'); fwrite($fh,$msg); fclose();
here is the complete code... <?php $msg = "This is a sample msg."; $file = "sss.txt"; $fh = fopen($file,"w"); fwrite($fh,$msg); fclose($fh); ?> PHP: hope that helps