简体   繁体   English

如何使用php或javascript / jquery脚本从服务器下载.PHP文件

[英]How to download .PHP file from the server with php or javascript/jquery script

This is my link and i want to download this code page(original back end code) as plain text format 这是我的链接 ,我想以纯文本格式下载此代码页(原始后端代码)

is it possible with php/javascript/jquery code? php / javascript / jquery代码可能吗?

You cannot. 你不能。

It is back-end code that is always parsed when it is run. 后端代码始终在运行时进行解析。 You'd need to use FTP, SSH or something to remote into the server and download the code itself. 您需要使用FTP,SSH或其他方式远程访问服务器并下载代码本身。

It'd be possible to have another file that would output the contents of the code, but it'd be a pretty major security issue if the raw code files could be downloaded. 可能会有另一个文件输出代码的内容,但是如果可以下载原始代码文件,这将是一个非常重要的安全问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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