Wites to an open file in PHP
Description
The following code shows how to wites to an open file.
Example
// w w w . j av a 2 s .c o m
<?php
$file = fopen("test.txt","w");
echo fwrite($file,"Hello World. Testing!");
fclose($file);
?>
The code above generates the following result.