Wednesday, 12 March 2014

PHP write string to file

$fh = fopen($myFile , 'w' ) or die( "can't open file" );
fwrite ($fh, $stringData);
fclose ($fh);

No comments:

Post a Comment