简体   繁体   English

curl是否在远程服务器上执行PHP脚本?

[英]Does curl execute the PHP script on the remote server?

This is a fairly simple question, yet I haven't been able to find a simple answer. 这是一个非常简单的问题,但我还没有找到一个简单的答案。

If I use curl on Server1 to access a PHP file on Server2, is the code in that file executed on Server2? 如果我在Server1上使用curl访问Server2上的PHP文件,该文件中的代码是否在Server2上执行?

I have a script on a remote server that I need to be able to execute from my main server. 我在远程服务器上有一个脚本,需要能够从主服务器执行该脚本。 The code should be executed on the remote server where the PHP file resides. 该代码应在PHP文件所在的远程服务器上执行。

Yes, it is. 是的。 Same as you'd enter that address to internet browser. 与您在Internet浏览器中输入该地址相同。

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

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