Question

How can I modify the source code of my project?

I am trying to modify the source code of my project, source code in php. How can i do it.


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,

In case that you are using Git and GitHub for your project, you could make the changes directly to your GitHub project and then pull them to your Droplet. If your project uses Git and if you are not familiar with it, you could learn more about it here:

https://www.digitalocean.com/community/cheatsheets/how-to-use-git-a-reference-guide

If you are not using Git, then you could change your files directly on your server. There are two ways to do so:

  • Via SFTP:

https://docs.digitalocean.com/products/droplets/how-to/transfer-files/

  • Or via the terminal over SSH:

https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/

Hope that this helps! Regards, Bobby