Forum Moderators: coopster

Message Too Old, No Replies

invoking java from within php

java php calling

         

TDarksword

6:24 pm on May 2, 2004 (gmt 0)

10+ Year Member



A hopefully simple question.
I currently use a Command line interface to call java program Saxon with the command:- [path]java.exe -jar [path]saxon7.jar [path]input.xml [path]transform.xsl >[path]output.html

Can I call Saxon to do the same thing but from within a php script as opposed to from the CLI?

If so how?

brotherhood of LAN

6:33 pm on May 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The exec() function lets you use the command line from within the script, you can basically treat what you put in there as the command line.

[uk2.php.net...]

TDarksword

6:38 pm on May 2, 2004 (gmt 0)

10+ Year Member



Heh knew it would be something simple. Thankyou