Skip to content (Press Enter)

My How To Online

  • Home
  • Applications
  • Questions
  • Programming
  • Tech
  • Contact

My How To Online

  • Home
  • Applications
  • Questions
  • Programming
  • Tech
  • Contact

How to delete all files in a directory on FTP with PHP

4.47K viewsNovember 1, 2020FTPPHP
0
Laura2 October 26, 2020 0 Comments

I have a PHP script that connects to a FTP server, but how can I delete all files in the directory?

Laura Unselected an answer November 1, 2020
Add a Comment

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Anonymous Posted October 26, 2020 0 Comments

There is no PHP function to delete all files in a directory.

You can list all files with ftp_nlist().

Use a loop to delete all files with ftp_delete().

Laura Changed status to publish October 26, 2020
Add a Comment
You are viewing 1 out of 3 answers, click here to view all answers.
Write your answer.
Register or Login
  • How To Delete A Playlist On VLC On Android

    June 10, 2022
  • How To Fill Out An Email Attachment On Android

    June 10, 2022
  • How To Download Ringtones From Zedge On Android

    June 10, 2022
  • How To Catch Someone Snooping On Your Android Phone

    June 10, 2022
  • Is There An App Which Takes A Picture When Someone Tries To Unlock Your iPhone?

    June 10, 2022
  • Where Are Amazon Video Downloads Saved On Android?

    June 10, 2022
  • How To Unblock Private Numbers On Android

    June 10, 2022
  • How To Attach A Picture To An Email On Android

    June 10, 2022
  • Why Are Some Contacts Blue On Android?

    June 10, 2022
  • How To Attach A Photo From My Phone To An Email 

    June 10, 2022

Categories

  • Applications
  • Best Products
  • Cooking & Recipes
  • Excel
  • Facebook
  • Lifestyle
  • Other
  • Programming
  • Tech
  • Uncategorized

My How To Online

MyHowToOnline.com is your online resource for tutorials, tips and hacks about technology.

Search

About

  • Advertise
  • About Us
  • Privacy Policy
  • Contact

Follow Us

© 2023 My How To Online.