03-19-2009, 02:18 AM
|
#2 (permalink)
|
|
The Contributor
Join Date: Feb 2009
Posts: 65
Thanks: 0
|
Soemthing like this may help
PHP Code:
<?php
function WritetoFile($file, $content) {
$fp = fopen($file, 'w');
fwrite($fp, $content);
fclose($fp);
}
$newcontent = 'The new content for myfile.txt';
WritetoFile('myfile.txt', $newcontent);
?>
|
|
|
|