SoFunction
Updated on 2025-04-14

Detailed explanation and analysis of PHP and Java integrated development Strong Alliance Page 4/4

The following is the quoted content:

?gt;java –classpath {place here the application classpath} Javaphp


Run PHP scripts using jrunscript tool

Java comes with a tool called jrunscript, which can use it to assign values ​​to PHP scripts from Java, such as:

jrunscript -l php {phpFile}.php

As in the following script:

<?php
  echo 'Hello';
?>