SyntaxFix
Write A Post
Hire A Developer
Questions
Platform independent code.
Took the answer from PHP.net
if(PHP_OS === 'Windows') { exec("rd /s /q {$path}"); } else { exec("rm -rf {$path}"); }