note 26618 rejected from function.touch by nicos
| From: | nicos@php.net | Date: | Wed, 06 Nov 2002 22:06:23 +0000 |
| Subject: | note 26618 rejected from function.touch by nicos | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39073@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");
}