note 26618 added to function.touch
| From: | poplolli at rack1 dot php dot net | Date: | Wed, 06 Nov 2002 21:02:32 +0000 |
| Subject: | note 26618 added to function.touch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39069@lists.php.net to get a copy of this message | ||
/*
seems that it does not work correctly under Windows 2000
*/
if (!file_exists($filename)) {
// creates the file, but will always return FALSE !!!!!!
if (!touch($filename)) die ("Unable to create $filename");
}
/*
I do it this way
*/
if (!file_exists($filename)) {
touch($filename);
if (!file_exists($filename)) die ("Unable to create $filename");
}
--
http://www.php.net/manual/en/function.touch.php
http://master.php.net/manage/user-notes.php?action=edit+26618
http://master.php.net/manage/user-notes.php?action=delete+26618
http://master.php.net/manage/user-notes.php?action=reject+26618