justuptime.com - monitor your servers & websites

unlink alternatives

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 2 posts

Joined: Jan 2006

Hi, I need for a file to be deleted from server soon after its created. I have heard that unlink is a dangerous thing to do. What's a better alternative? Thanks

Get your free Flash Contact Forms for your website.
Coming soon: Flash Attachment Email

They have: 36 posts

Joined: Mar 2006

Unlink is only dangerous if you're not careful about what you're doing. Don't allow any way for users to specify what's being deleted and you're fine.

timjpriebe's picture
DeveloperModeratorSponsor

He has: 2,666 posts

Joined: Dec 2004

Agreed. I use unlink, no problem. But I never allow users to specify what's being deleted. Just program smart, and you'll have no problem.