问题
I have two text files, and a PHP script intended to delete them. My question is: why won't the two text files delete? They are both set to 777, maybe i should change permission settings? I think it's my webhost disallowing the function to execute...
Here is my code: http://informationalinformation.info/fg/cron.php
回答1:
The process must have write permission for the folder in which the file is located.
来源:https://stackoverflow.com/questions/1263544/why-wont-my-php-code-unlink-text-files