I have this code to recursive delete files and directories. It works fine but has a little problem. If $path = /var/www/foo/ it will delete everything inside of foo, but not foo. I want to delete foo
Something wrong is going on with one of the files in my local git repository. When I\'m trying to change the branch it say开发者_StackOverflow中文版s:
I have a script to upload files and name them numerically (say 1-15) and when I delete a file (say number 5) I want the files to be renamed 1-14. This works okay if I delete a file 9 and under, if I d
I\'m using UNLINK with PHP and AJAX. I know that in this way is very dangerous, because everyone can delete any files. But I need to use AJAX because I can\'t reload the page when I delete the files.
I have this so far: <?php $path = \"files/\"; $files = glob(\"\" . $path . \"{*.jpg, *.gif, *.png}\", GLOB_BRACE);
i want to delete files from a directory via php. Somehow my php_errorlog always tells me: [06-Jun-2010 19:38:46] PHP Warning:chmod() [function.chmod]: Operation not permitted in /Users/myname/htdocs
Task: Cut or erase a file after first walk-through. i have an install file called \"index.php\" which creates another php fi开发者_StackOverflow社区le.
I am building a simple PHP daemon script, using a php Daemon class provided at: http://www.phpclasses.org/browse/file/8958.html