Re: [PHP] Delete files via PHP
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 on php.ini or if the directory permissions aren't set as they should be. Miguel Jason Wong [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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 during the upload process. So, i was never thinking that the unlink fuction was able to do it. Could you tell us which books they are? They seem to be giving very poor advice. Uploaded files are _automatically_ deleted when the script ends. There is no need to force deletion of those temporary files. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* The best laid plans of mice and men are held up in the legal department. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Delete files via PHP
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 Thx in advance Miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Delete files via PHP
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 Øyvind On Fri, 31 Jan 2003, Miguel Brás wrote: 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 Thx in advance Miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Delete files via PHP
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 fuction was able to do it. Sorry for thge trouble Miguel Øyvind vestavik [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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 Øyvind On Fri, 31 Jan 2003, Miguel Brás wrote: 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 Thx in advance Miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Delete files via PHP
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 during the upload process. So, i was never thinking that the unlink fuction was able to do it. Could you tell us which books they are? They seem to be giving very poor advice. Uploaded files are _automatically_ deleted when the script ends. There is no need to force deletion of those temporary files. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* The best laid plans of mice and men are held up in the legal department. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php