example of how to use fopen function in php write to files
example of how to use fopen function in php write to files
example, of, how, to, use, fopen, function, in, php, write, to, files


Fri Feb 29, 2008 12:01 pm - example of how to use fopen function in php write to files
#1850
example of how to use fopen function in php write to files
author: web hosting
Leave Your Comments
name
comments
Share
Share this post by copy and paste this URL and put it on your forums or use it on your profile like myspace, friendster, Facebook, Twitter or others and add in with your comments.
URL Link: ask
Use this HTML code to embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed: ask
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on with Posts and Replies on your forums
BBCODE: ask
| More
Wed Jan 30, 2008 12:54 pm - Re: example of how to use fopen function in php write to files
#2069
Sparky
thansk that really helped being looking for hours most i found would edit php but i needed to xml and yours worked where others all failed big thanks :-)
Fri Feb 29, 2008 11:59 pm - Re: example of how to use fopen function in php write to files
#2070
Saravanan
good script. some error in file opening. remove the else statement for first if block.
Thu Mar 06, 2008 2:03 pm - Re: example of how to use fopen function in php write to files
#2071
webune
if you want to append the file instead of writing something new all you have to do is change line 12 of this script

from this:
if (!$handle = fopen($filename, 'w')) {


to this:
if (!$handle = fopen($filename, 'w+')) {