FAQ Database Discussion Community


PHP unlink() issues

php,permissions,mkdir,unlink
Platform = Mac OS 10.8.5 Hi guys, I'm working on a php/mysql site. When I create a new user, my site creates a series of file folders to house information. My issue is when my user tries to delete his account, it will return a permissions error. I can temporarily...

PHP - unlink not properly working

php,cookies,unlink
I'm trying to delete cookie files with the unlink() function and it's not working properly I tried this code (found on php.net) <?php array_map('unlink', glob("some/dir/*.txt")); ?> But it do not delete the last created file......

Delete files based on backlist word

shell,delete,unlink,blacklist
I am loocking for bash on linux or php file file: cron.php or cron.sh dir: /files blacklist: blacklist.txt cron.php runs every minute and search for file names containing blacklist. delete files based on file name reasson: clean download center from explicit files ; $blacklist = 'blacklist.txt'; for each /files/*.* echo...

php function to check when an uploaded image has been in the directory for longer than a day

php,file-upload,controller,cron,unlink
I have a cron controller class that basically handles all cron job related work. I'm trying to add a function to the controller that deletes images that have been in the directory longer than a day. Here is what I have so far, and it makes sense to me I...

Receiving unlink() error after it has been successful

php,runtime-error,unlink
this might be a really stupid question but I am getting the following error after the code has successfully deleted the file and I can not work out why, the code is very simple it gets the name and path of the file to be deleted from the database and...