Connecting via PHP to your DigitalOcean space

I tried to follow a couple of tutorials, but so far I got nowhere. I set-up an additional space, where overnight I transfer the images to that space. So when I want to delete a file on that space, I need to be able to connect to it and give via PHP a commando that I delete that file or multiple files. Can someone pinpoint me to a (simple) example how I can connect to the space and make some modifications (get a list of all the files, delete a file, …).

Kind regards,

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @gschnieders

I believe that a similar question was asked before in our community. You can check the question here:

Hope that this helps! Regards, Alex