Welcome Guest, Not a member yet? Register   Sign In
delete_files function does not work me
#6

(05-10-2016, 08:44 AM)nkhan Wrote:
(05-10-2016, 07:06 AM)ivantcholakov Wrote: https://en.wikipedia.org/wiki/Directory_...sal_attack

Also, I think, in $_POST it would be safer if it is possible you to identify the file to be deleted with a database id than with the file name directly.

Hi @ivantcholakov

Actually i want to know is there any  predefined function for delete a single file(it may be a pdf / doc/ image) in CI is exist or not. I know unlink() 

which is used to delete the file but it is core function of PHP. 

Please let me know.

And that unlink() is a native PHP function makes it bad somehow?
CodeIgniter doesn't have a single-file-delete function exactly because PHP already provides one out of the box.
Reply


Messages In This Thread
delete_files function does not work me - by nkhan - 05-09-2016, 12:59 PM
RE: delete_files function does not work me - by Narf - 05-10-2016, 09:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB