$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 -- h
ttps://master.php.net/note/delete/70037/integrated
Del: useless -- http
s://master.php.net/note/delete/70037/useless
Del: bad code -- htt
ps://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 -- http
s://master.php.net/note/delete/70037/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/70037
Reject -- https://mast
er.php.net/note/reject/70037
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|