note 38694 deleted from function.file-get-contents by didou

From: Date: Sat, 03 Jan 2004 10:51:08 +0000
Subject: note 38694 deleted from function.file-get-contents by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62852@lists.php.net to get a copy of this message
Note Submitter: tychay@php.net ---- 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

« previous php.notes (#62852) next »