note 39633 deleted from function.unlink by aidan

From: Date: Wed, 08 Sep 2004 11:38:56 +0000
Subject: note 39633 deleted from function.unlink by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76224@lists.php.net to get a copy of this message
Note Submitter: mazsolt at yahoo dot com ---- if a file is opened by a script, another script cannot delete that file using unlink(), but it returns a warning: permission denied <? //script1 $f = fopen("beruf.txt","r+"); sleep(10); ...... ?> if we want to delete that file absolutely, we could use the while() loop <? //script2 ... while (!unlink("beruf.txt")) ; ?>

« previous php.notes (#76224) next »