note 38694 added to function.file-get-contents

From: Date: Sat, 03 Jan 2004 07:59:46 +0000
Subject: note 38694 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-62843@lists.php.net to get a copy of this message
the previous function has a slight error... if ($file) returns $data which hasn't been set in the correct location--you need to set it outside the loop. This will throw a warning. Also, it's probably a good idea to use portable locking: see flock(). I am not sure if get_file_contents() supports portable locking because I'm too lazy to check the source. :) --terry ---- Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38694 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38694&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38694&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62843) next »