note 79958 added to function.file-put-contents
| From: | egingell at sisna dot com | Date: | Fri, 21 Dec 2007 03:15:30 +0000 |
| Subject: | note 79958 added to function.file-put-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133831@lists.php.net to get a copy of this message | ||
There is a better way. www.php.net/touch
Since you're not adding anything to the file,
<?php
function updateFile($filename) {
if (!file_exists($filename)) return;
touch($filename);
}
?>
----
Server IP: 209.41.74.194
Probable Submitter: 65.100.198.135
----
Manual Page -- http://www.php.net/manual/en/function.file-put-contents.php
Edit -- https://master.php.net/note/edit/79958
Del: integrated -- https://master.php.net/note/delete/79958/integrated
Del: useless -- https://master.php.net/note/delete/79958/useless
Del: bad code -- https://master.php.net/note/delete/79958/bad+code
Del: spam -- https://master.php.net/note/delete/79958/spam
Del: non-english -- https://master.php.net/note/delete/79958/non-english
Del: in docs -- https://master.php.net/note/delete/79958/in+docs
Del: other reasons-- https://master.php.net/note/delete/79958
Reject -- https://master.php.net/note/reject/79958
Search -- https://master.php.net/manage/user-notes.php