note 70037 added to function.delete

From: Date: Sat, 30 Sep 2006 20:30:37 +0000
Subject: note 70037 added to function.delete
Groups: php.notes 
Request: Send a blank email to php-notes+get-117887@lists.php.net to get a copy of this message
$myFile = "testFile.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); fclose($fh); Now to delete testFile.txt we simply run a PHP script that is located in the same directory. Unlink just needs to know the name of the file to start working its destructive magic. $myFile = "testFile.txt"; unlink($myFile); The testFile.txt should now be removed. ---- Server IP: 81.92.200.26 Probable Submitter: 85.242.208.234 ---- Manual Page -- http://www.php.net/manual/en/function.delete.php Edit -- https://master.php.net/note/edit/70037 Del: integrated -- https://master.php.net/note/delete/70037/integrated Del: useless -- https://master.php.net/note/delete/70037/useless Del: bad code -- https://master.php.net/note/delete/70037/bad+code Del: spam -- https://master.php.net/note/delete/70037/spam Del: non-english -- https://master.php.net/note/delete/70037/non-english Del: in docs -- https://master.php.net/note/delete/70037/in+docs Del: other reasons-- https://master.php.net/note/delete/70037 Reject -- https://master.php.net/note/reject/70037 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117887) next »