note 101349 added to function.file-put-contents

From: Date: Sat, 11 Dec 2010 20:47:20 +0000
Subject: note 101349 added to function.file-put-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-174805@lists.php.net to get a copy of this message
It's worth noting that you must make sure to use the correct path when working with this function. I was using it to help with logging in an error handler and sometimes it would work - while other times it wouldn't. In the end it was because sometimes it was called from different paths resulting in a failure to write to the log file. __DIR__ is your friend. ---- Server IP: 64.71.164.2 Probable Submitter: 208.101.217.15 ---- Manual Page -- http://www.php.net/manual/en/function.file-put-contents.php Edit -- https://master.php.net/note/edit/101349 Del: integrated -- https://master.php.net/note/delete/101349/integrated Del: useless -- https://master.php.net/note/delete/101349/useless Del: bad code -- https://master.php.net/note/delete/101349/bad+code Del: spam -- https://master.php.net/note/delete/101349/spam Del: non-english -- https://master.php.net/note/delete/101349/non-english Del: in docs -- https://master.php.net/note/delete/101349/in+docs Del: other reasons-- https://master.php.net/note/delete/101349 Reject -- https://master.php.net/note/reject/101349 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174805) next »