note 86062 modified in function.unlink by felipe
| From: | felipe@php.net | Date: | Wed, 01 Oct 2008 19:20:14 +0000 |
| Subject: | note 86062 modified in function.unlink by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144949@lists.php.net to get a copy of this message | ||
Under Windows System and Apache, denied access to file is an usual error to unlink file.
To delete file you must to change file's owern.
An example:
<?php
chown($TempDirectory."/".$FileName,666); //Insert an Invalid UserId to set to Nobody
Owern; 666 is my standard for "Nobody"
unlink($TempDirectory."/".$FileName);
?>
--was--
Under Windows System and Apache, denied access to file is an usual error to unlink file.
To delete file you must to change file's owern.
An example
chown($TempDirectory."/".$FileName,666);//Insert an Invalid UserId to set to Nobody Owern;
666 is my standard for "Nobody"
unlink($TempDirectory."/".$FileName);
http://php.net/manual/en/function.unlink.php