0

I have created a program but i need to get a java program to run a php script with some arguments and then get the php script to send some arguments to the Java program. I know this question has been asked a lot of times but it seems like the only answer i can get is that php can do this but java cant but there must be a way to do it. Right?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433

1 Answers1

2

You can run PHP from the command line:

http://php.net/manual/en/features.commandline.php

This should enable your Java application to run it, and capture it's return values.

Borniet
  • 3,544
  • 4
  • 24
  • 33