tags:

views:

64

answers:

3

Is there a way to run php server**(remote)** scripts from a java program (with secured/encrypted connection).

+3  A: 

Visit (make post or get HTTP request) php page from your java program, for example, via HttpUrlConnection type

Victor Sorokin
+1  A: 

Make sure to use HTTPS (not HTTP) if you want a secure connection.

The server will need to support ssl for that, if you're using Apache, make sure you have mod_ssl

Jeffrey Aylesworth
A: 

If scripts are not web accessible then you can connect to a remote server via SSH (using SSHTools for example) and run scripts from shell (php scriptfile.php).

serg