Jump to content

Archived

This topic is now archived and is closed to further replies.

dandandan

write function

Recommended Posts

how would i write something to another file?

eg. i want to write whats in my $_REQUEST['note'] to a notes.txt file to have a log of what everybody put into the imputbox?

Share this post


Link to post
Share on other sites
There's example code on the function pages within the php documentation that Jenk pointed you towards.

Why don't you go and give it a try, write some code, and if it doesn't work, post what you have here...

Here's links to the exact pages:

[url=http://uk.php.net/manual/en/function.fopen.php]fopen[/url], [url=http://uk.php.net/manual/en/function.fwrite.php]fwrite[/url] and [url=http://uk.php.net/manual/en/function.fclose.php]fclose[/url].

Regards
Rich

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.