Unlink question

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
unkempt
Forum Newbie
Posts: 6
Joined: Tue Mar 25, 2008 5:20 pm

Unlink question

Post by unkempt »

Could someone be able to tell me if this script actually physically removes the file from the server - or simply hides it??

Cheers

<?php
$myFile=$_POST[delstr];
unlink($myFile);
print "&removed=".$myFile;
?>
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Unlink question

Post by Christopher »

unlink() removes the file.
(#10850)
Post Reply