Jump to content

need help in delete function.


xhelle

Recommended Posts

Hi Peeps,

 

I'm not sure if this is the right place to ask this  :confused:. 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 ^^

Link to comment
https://forums.phpfreaks.com/topic/199734-need-help-in-delete-function/
Share on other sites

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 .

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.