Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Need help unlinking files

$
0
0

Hey,

 

 I am trying to unlink all files in 2 seperate directories using the array_map function. On one of the directories it works, and the second directory it does not unlink any of the files. I have checked the path and permissions and everything looks the way it should be.

 

Is there any way where I can debug the code to see why it isn't unlinking. Below is the code I am using

array_map("unlink", glob($diretory/*.())

Viewing all articles
Browse latest Browse all 13200

Trending Articles