Page 1 of 1

alternatives to unlink

Posted: Fri Mar 24, 2006 7:13 am
by xeno439
Hi, I am fairly new and keep hearing that unlink is a precarious function to implement in php. Can someone tell me a safe(r) alternative. Thanks

Posted: Fri Mar 24, 2006 7:28 am
by Grim...
Well, if you want to delete something, unlink() is pretty much your only choice.

Posted: Fri Mar 24, 2006 7:51 am
by shiznatix
whats wrong with unlink()? it works fine!

Posted: Fri Mar 24, 2006 8:38 am
by s.dot
what do you mean by safer?
if by safer you mean security.. then they only security issue would be poor coding

if you need to delete things, run a test first, so you don't accidentally wipe out entire directories! (speaking from experience :lol:)