Skip to content

Tag: delete-file

how to delete a file from folder in php

I have a folder ‘items’ in which there are 3 files item1.txt, item2.txt and item3.txt. I want to delete item2.txt file from folder. I am using the below code but it not deleting a file from folder. Can any body help me in that. Answer Initially the folder should have 777 permissions or try

PHP + FTP delete files in folder

I just wrote a PHP Script which should connect to FTP and delete all files in a special folder. It looks like this, but I have no clue what command I need to delete all files in the folder logs. …