[英]How to download .PHP file from the server with php or javascript/jquery script
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.