View Single Post
Old 03-19-2009, 02:18 AM   #2 (permalink)
Krik
The Contributor
 
Join Date: Feb 2009
Posts: 65
Thanks: 0
Krik is on a distinguished road
Default

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);
?>
Krik is offline  
Reply With Quote
The Following User Says Thank You to Krik For This Useful Post:
allworknoplay (03-19-2009)