|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
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 ?
__________________
I have nothing to advertise ... yet. |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: May 2004
Location: ...
Posts: 761
|
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
__________________
Programmer ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: May 2004
Location: ...
Posts: 761
|
as for your second question, of course. that's what firewalls are meant to do
__________________
Programmer ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: May 2005
Posts: 2,737
|
Make sure you have the allow_url_fopen=On in your php.ini
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
Thanks naitirps... I didn't thought include would work cross server ... but it works just fine.
__________________
I have nothing to advertise ... yet. |
|
|
|
|
|
#6 | |
|
Confirmed User
Join Date: Dec 2002
Posts: 542
|
Quote:
|
|
|
|
|