View Single Post

   
  #1 (permalink)  
Old 04-24-2008, 04:38 PM
Charles Lavin
 
Posts: n/a
Default Executing remote PHP script?

Hi --

I've been looking around for an answer to my question, but what I find all
seems to be the reverse of what I'm looking for.

I have an Apache server out of state. There is a PHP script on that server
that a user from the local office regularly executes; he simply opens a Web
browser and navigates to http://server.com/script.php.

This script requires a data file that is automatically uploaded by an
in-house Unix (AIX 5.3) server via FTP. This server is a production system
running LOB applications. It does not have a Web browser installed (nor will
we install one on it).

What I would very much like to do is get this AIX server to remotely execute
that PHP script when it's appropriate, and "eliminate the middleman":

1) The AIX box cuts the data file;
2) The AIX box uploads the data file;
3) The AIX box triggers the remote execution of the PHP script.

In other words: I want a Unix box (via shell script or whatever) to trigger
a PHP script on a remote Apache server. I don't want the PHP script to
trigger anything on the Unix box (which is the direction all the posts I've
found seem to take).

Can this be done? Where can I find info on setting this up?

Thanks,
CL





Reply With Quote