Welcome Guest, Not a member yet? Register   Sign In
How to delete folder according to username.
#3

(07-03-2018, 09:54 AM)jreklund Wrote: It looks like $item dosen't contain anything.
You are using delete() before getting the username.

You need to check so that $item aren't NULL and that those folders exists, before deleting them.

OMG! Dude, I've been trying to figure out this the whole day and I never though of just putting the delete in he very end because I though it really did not matter bacause I wanted to delete a folder containing the username not the ID but hey, thanks it worked!!. Always learning!.
I do Front-End development most of the timeĀ 
Reply


Messages In This Thread
RE: How to delete folder according to username. - by kirasiris - 07-03-2018, 07:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB