PHP: delete - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

dirname copy

Last updated: Fri, 26 Jan 2007

view this page in

# delete

(no version information, might be only in CVS)

delete -- См.описание функции unlink() или unset()

## Описание

void delete ( string file )

Это фиктивная секция руководства, которая помогает программистам, ищущим описание unlink() или unset() в неверном месте.

См.также описания функции unlink(), служащей для удаления файлов или unset() - для удаления переменных.

add a note User Contributed Notes
delete
bmcouto at hotmail dot com
30-Sep-2006 01:30
`$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.`
add a note
dirname copy

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST