xhelle Posted April 26, 2010 Share Posted April 26, 2010 Hi Peeps, I'm not sure if this is the right place to ask this . What should i use if i like to delete a file that already upload in the server. The user has the ability to delete the files if he accidentally input a wrong value to that field. It is possible in javascript or should i use a ajax. I'm just new in both script. Hope somebody here help me and reply to this topic. Thanks in advance ^^ Quote Link to comment Share on other sites More sharing options...
peter_parker2010 Posted April 28, 2010 Share Posted April 28, 2010 php has a fairly straingh forward function to delete the file uploaded , or in use in it's server space . You can use function unlink() http://php.net/manual/en/function.delete.php . Also remeber that your application folder has appropriate writes to do the same . Normally place such files which has to be deleted over a period of time , or for temporary use into /tmp folder . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.