PHP file_put_contents May 11, 2012 Pramod T P It writes a string to a file Example <?php file_put_contents(“test.txt”,”phpcodez”); ?> Share this: Share on X (Opens in new window) X Share on Facebook (Opens in new window) Facebook Like Loading...