View Single Post
Old 03-19-2009, 11:12 AM   #5 (permalink)
xenon
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

Sounds like file_put_contents could help you.

PHP Code:
file_put_contents('filename.txt''file contents...'); 
Why create your own function when the language itself provides you with one? I just don't see the point, unless you want to append to an existing file.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
The Following User Says Thank You to xenon For This Useful Post:
allworknoplay (03-19-2009)