advanced code snippet search
kotnik on 05/09/07
php file write logging
2 people have marked this snippet as a favorite
$myFile = "/tmp/slike.txt";$fh = fopen($myFile, 'a') or die("can't open file");fwrite($fh, print_r($povratak_fje));fclose($fh);
Report this snippet
If you're using PHP5 fileputcontents() will do the trick too. Might be faster as it's precompiled into the language.
Looks like Markdown mangled the method. It should be fileputcontents.
Hmm, mangled again. One more try:
Yeah, i've put this for easy copy&paste on PHP4 configurations. Thanks for the suggestion ;)
You need to login to post a comment.