[PHP] Delete files via PHP

2003-01-31 Thread Miguel Brás
Hi guys, I made a upload file's script and it works fine. No, I wanna create a page where it will display the directory content and will let me delete any file standing there. Is there any way to use php for that? Where can I get info about it? BTW, I have PHP/MySQL working on a Linux system T

Re: [PHP] Delete files via PHP

2003-01-31 Thread Øyvind Vestavik
Read the manual first. If you can't find it, search the net (google is a great place to start). If you still can't find it, _then_ ask on the list. I had no idea how to do this, but it took me 30 sec to find out, and I'm a newbie. http://no.php.net/manual/en/function.unlink.php vennlig hilsen Ø

Re: [PHP] Delete files via PHP

2003-01-31 Thread Miguel Brás
Hey, thx for your speech In a matter of fact, I have 2 books about PHP and all they say about the unlink function (I use it in my upload system) is that it is suposed to force the delete of the temporary file that it is created during the upload process. So, i was never thinking that the unlink

Re: [PHP] Delete files via PHP

2003-01-31 Thread Jason Wong
On Saturday 01 February 2003 03:23, Miguel Brás wrote: > Hey, thx for your speech > > In a matter of fact, I have 2 books about PHP and all they say about the > unlink function (I use it in my upload system) is that it is suposed to > force the delete of the temporary file that it is created durin

Re: [PHP] Delete files via PHP

2003-02-01 Thread Miguel Brás
Hi, that's a negative They say that after uploading the file, the temp file on the tmp directory (usual) is deleted, anyway in order to confirm the deletion we should use unlink() function. Reading from one of the books, they say that the temp files are not deleted if a misconfiguration is found