1. Computing & Technology

Discuss in my forum

Fwrite () PHP Function

By , About.com Guide

Definition: Fwrite () is a binary safe way to write to files in PHP. It is phrased as fwrite (handling, StringData)

You need to open a file in the handling for the fwrite to work.

Examples:

 <?php
 $handling = fopen($MyFile, 'w');
 $StringData = "My Information To Add\n";
 fwrite($handling, $StringData); 
 ?>
Related Searches fwrite myfile safe way lt

©2012 About.com. All rights reserved.

A part of The New York Times Company.