alternatives to unlink

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
xeno439
Forum Newbie
Posts: 15
Joined: Tue Nov 22, 2005 12:48 am

alternatives to unlink

Post 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
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Well, if you want to delete something, unlink() is pretty much your only choice.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

whats wrong with unlink()? it works fine!
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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:)
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply