Jump to content


Photo

write function


  • Please log in to reply
4 replies to this topic

#1 dandandan

dandandan
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 11 September 2006 - 09:23 AM

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?

#2 Jenk

Jenk
  • Members
  • PipPipPip
  • Advanced Member
  • 778 posts

Posted 11 September 2006 - 09:58 AM

fopen+fwrite+fclose

www.php.net

#3 dandandan

dandandan
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 11 September 2006 - 10:31 AM

how do you use those functions? care to give a quick example? thanks

#4 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 11 September 2006 - 10:58 AM

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:

fopen, fwrite and fclose.

Regards
Rich
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#5 dandandan

dandandan
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 11 September 2006 - 01:16 PM

thanks, i figured it out through the links.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users