-1

This is just a hypothetical question. Let's say we have a website built using CGI scripts. I find a folder within it (for ex; www.website.com/links/link.txt) and it has some basic text files. When I enter this URL on a browser, I am able to see the file "link.txt". I also know that the website is running on Apache Tomcat.

My question is, how do I (as a user) edit this link.txt file? What tools should I use?

1
  • It's probably a good question, but not really about programming ;)
    – tomaoq
    Oct 27, 2015 at 17:35

1 Answer 1

1

Unless you have a web-based editor you can't edit the files directly; this is for security purposes as if you can change the file that means anyone else can too.

You will need a way to either connect to the server and edit it using a remote session, or you will need to edit the file using your computer and then upload it. Unfortunately you have already mentioned that ssh and ftp aren't working, which are the two ways I would have otherwise suggested.

I would suggest you get in touch with your site host and ask them what functionality they provide to allow you to edit files.

Hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.