简体   繁体   中英

javascript code to edit&save file on linux server?

is there any javascript code that I can use to edit (and maybe download and later upload the modified) text file on a linux server?

So I do not have to leave my web browser and do ssh all the time when I need to edit or even only check some config files? The server is not accessible from the Internet.

您可以使用AJAX读取文件,然后使用更多的AJAX调用写入文件的服务器端脚本,最好不要引入安全漏洞。

file_get_contents() put in to textarea, edit, save with file_put_contents(), no js needed just a form and php. if you want fancy editing like for html then there's CKEditor or tinymce .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM