1. Computing

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 Video
Basic PHP Syntax
Using PHP With HTML
Top Related Searches fwrite myfile safe way lt
  1. About.com
  2. Computing
  3. PHP / MySQL
  4. PHP Functions
  5. Fwrite - Fwrite PHP - PHP Write to File

©2013 About.com. All rights reserved.