GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP guru (https://gfy.com/showthread.php?t=518359)

qw12er 09-19-2005 05:16 PM

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 ?

naitirps 09-19-2005 05:18 PM

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

naitirps 09-19-2005 05:20 PM

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".

mrkris 09-19-2005 05:25 PM

Make sure you have the allow_url_fopen=On in your php.ini

qw12er 09-19-2005 05:35 PM

Thanks naitirps... I didn't thought include would work cross server ... but it works just fine.

Trafficbrokercom 09-19-2005 05:41 PM

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


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