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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-19-2005, 05:16 PM   #1
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
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 ?
__________________
I have nothing to advertise ... yet.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2005, 05:18 PM   #2
naitirps
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
naitirps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2005, 05:20 PM   #3
naitirps
Confirmed User
 
Join Date: May 2004
Location: ...
Posts: 761
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".
__________________
Programmer
ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com
naitirps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2005, 05:25 PM   #4
mrkris
Confirmed User
 
Join Date: May 2005
Posts: 2,737
Make sure you have the allow_url_fopen=On in your php.ini
__________________

PHP-MySQL-Rails | ICQ: 342500546
mrkris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2005, 05:35 PM   #5
qw12er
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.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-19-2005, 05:41 PM   #6
Trafficbrokercom
Confirmed User
 
Join Date: Dec 2002
Posts: 542
Quote:
Originally Posted by mrkris
Make sure you have the allow_url_fopen=On in your php.ini
yeah , dont forget that so we can all make fun of you tomorrow when your site was defaced
Trafficbrokercom is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.