Quote:
Originally Posted by camperjohn64
- It is a push, not a pull, so I can't use wget. The sending server must initiate the call.
|
Do it the other way then:
file_get_contents('http://www.otherserver.com/get.php?filename=whatever');
get.php:
shell_exec("wget http://www.firstserver.com/files/".$_GET[filename]);
Thats it in a nutshell, but add sanitization on the inputs, check the server ip on get.php etc...