dandandan Posted September 11, 2006 Share Posted September 11, 2006 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? Link to comment https://forums.phpfreaks.com/topic/20373-write-function/ Share on other sites More sharing options...
Jenk Posted September 11, 2006 Share Posted September 11, 2006 fopen+fwrite+fclosewww.php.net Link to comment https://forums.phpfreaks.com/topic/20373-write-function/#findComment-89710 Share on other sites More sharing options...
dandandan Posted September 11, 2006 Author Share Posted September 11, 2006 how do you use those functions? care to give a quick example? thanks Link to comment https://forums.phpfreaks.com/topic/20373-write-function/#findComment-89716 Share on other sites More sharing options...
HuggieBear Posted September 11, 2006 Share Posted September 11, 2006 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].RegardsRich Link to comment https://forums.phpfreaks.com/topic/20373-write-function/#findComment-89720 Share on other sites More sharing options...
dandandan Posted September 11, 2006 Author Share Posted September 11, 2006 thanks, i figured it out through the links. Link to comment https://forums.phpfreaks.com/topic/20373-write-function/#findComment-89766 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.