From the command line when I use:
rm -fr /path/dir/{*,.??*}
I can delete all files in /path/dir, including hidden files, but when I try to do this with PHP using this code:
system('rm -fr /path/dir/{*,.??*}') Nothing happens.
I can not find why this is not working
source
share