Re: executing a remote script

From: Date: Thu, 15 May 2003 17:44:02 +0000
Subject: Re: executing a remote script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147746@lists.php.net to get a copy of this message
----- Original Message ----- From: "Thomas Hochstetter" <fisherofmen@gmx.net> To: <php-general@lists.php.net> Sent: Thursday, May 15, 2003 10:45 AM Subject: [PHP] executing a remote script > Hi there, > > I need to know how one can execute a script on another server, which returns > a reply and sends it to the original script (or something like that). All > this has to happen without the user being able to see the variables passed, > ever! > This is for a sms system, we will send password and user id's. > > Anyone? > > Thomas Well you could do it any one of half a dozen different ways I suppose. But since both servers are running PHP you can simply include() the remote script. include("http://www.secretserver.com/script.php"); The script will execute on the remote server, do it's duty, then any output will come back to the main script on the primary server. HTH, Kevin

« previous php.general (#147746) next »