Deleting a directory containing files and/or subdirectories in PHP isn't possible using the rmdir function alone. You'll need to create a recursive function. It's easier than it sounds, and this tutorial shows you how!
Official website
http://phpacademy.org
Support Forum
http://phpacademy.org/forum
Follow us on Twitter!
http://twitter.com/phpacademy
@3:51 It was probably a hoover but it sounded like an old kettle and I just though "I need a cuppa"
OwinTV 1 month ago in playlist General Tutorials
@anotherwaytodoit Actually, == doesn't check the type (string, int, bool, etc), so if you compare FALSE (boolean) to 'FALSE' (string), == will consider them the same since it does not look at types. Whereas if(0 === '0') will consider them unequal because one is an int and the other is a string. So, == is a less strict form of comparison, ignoring types, comparing if they simply match. === does essentially the same thing, except it must match INCLUDING the data type.
deficitcrew 1 month ago
thanks nice tutorial for recursive func.
1muratersoy 1 month ago
@no4ash
=== is case sensetive (strict comparison) while == is not,
same thing with !== and !=
anotherwaytodoit 1 month ago
please increase font size
alokyadav15 2 months ago
why use === instead of ==
no4ash 2 months ago
use this guys it really works..
system('/bin/rm -rf '.escapeshellarg('foldername'));
HawxTeamDelta 2 months ago
Just wanted to say this was an excellent series of tutorials - Very clear and well presented!! Keep up the good work :-)
ARTGRAFIXSTUDIO 2 months ago in playlist More videos from phpacademy
nice tutorial :D you are nerd in php alex!
MrYourMedia 2 months ago
Best tutorials, from you!
Since 2009
NullDeveloper 2 months ago