-1
在我问这个问题之前,我会解释一下这个设置。PHP - 在远程服务器上Ping另一个PHP文件
服务器1: VPS在CentOS
服务器2: VPS在CentOS
在server1上我有/var/www/html/test.php 此文件必须ping通get.php上其他服务器,有一些POST变量。
Server2上我有/home/somedir/get.php
所以是能ping通一个文件,这是不是webfile?
PHP可以作为一个命令行脚本来执行,所以是的,这是可能的。 –
定义'ping'。你的意思是一个HTTP POST请求? – reto
就这样它运行server2上的文件 – user3802123