Posted: December 7th, 2011, 7:30am MST
Writing to a File This section highlights several of the functions used to output data to a file. fwrite() int fwrite (resource handle, string string [, int length]) The fwrite() function outputs the contents of string to the resource pointed to by handle. If the optional length parameter is provided, fwrite() will stop writing when length characters have been written. Otherwise, writing will stop when the end of the string is found. Consider this example: lt;?php $subscriberInfo = quot;Jason Gilmore|wj@example.com quot;; $fh = fopen( quot;/home/www/data/subscribers.txt quot;, quot;at ...