![]() |
PHP guru
How do you call a script on a remote server in PHP ? I tryed exec($URL); but it doesn't work.
Also, if I open socket connection between 2 scripts on 2 separate servers will firewalls shut me down unless I enable that port ? |
you can include it using include();
include 'http://www.example.com/file.php?foo=1&bar=2'; or you can curl() it using the curl functions if you just want it to spit you a response, ie a processor response or something of that sort... www.php.net/curl |
as for your second question, of course. that's what firewalls are meant to do :) open the port on the server that you are binding the listening command on... the client can have the firewall on since its not "listening", but "connecting".
|
Make sure you have the allow_url_fopen=On in your php.ini
|
Thanks naitirps... I didn't thought include would work cross server ... but it works just fine.
|
Quote:
|
| All times are GMT -7. The time now is 03:26 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123