Page 1 of 1
Delete file
Posted: Fri Apr 09, 2004 1:55 am
by S_henry
At this time I only can upload the file (eg .txt, .xls) into a folder and save that file name into a table. The problem is I don't know how to delete that file from the folder after I've uploaded it. Anybody got any idea?
hi
Posted: Fri Apr 09, 2004 2:05 am
by dipit
use
void delete ( string file)
or
unlink()
Posted: Fri Apr 09, 2004 4:29 am
by S_henry
Sorry. Actually I'm not very clear with that funtion. Can anybody explain more detail pls?
Posted: Fri Apr 09, 2004 4:40 am
by vigge89
[php_man]unlink[/php_man]
Code: Select all
<?php
$filename = 'somefile.txt';
unlink ($filename);
?>
Posted: Sun Apr 11, 2004 8:59 pm
by S_henry
Ok. It really work. Thanx guys..