note 42207 added to function.file-put-contents

From: Date: Fri, 07 May 2004 20:00:47 +0000
Subject: note 42207 added to function.file-put-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-69325@lists.php.net to get a copy of this message
This is almost nitpicking, but I just want to point out that sailquasar's pre-PHP 5 function ought to check for errors from fclose. It can for instance fail if the file is buffered but the disk is full, or if you're using quotas or NFS. According to the man pages for fclose / fflush / write / close, it can fail for almost any reason. ---- Manual Page -- http://www.php.net/manual/en/function.file-put-contents.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42207 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42207&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42207&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69325) next »