: This article describes how to call PHP instances in Java. For more information about PHP tutorials, see.
Package test; import java. io. inputStream; import java. io. inputStreamReader; publicclass Php {publicstaticvoidmain (String args []) throws Exception {ProcessBuilder pb = new ProcessBuilder ("C: \ Users \ Administrator \ Desktop \ php-5.6.18-nts-Win32-VC11-x64 \ php.exe "," C: \ Users \ Administrator \ workspace \ JavaPhp \ src \ test \ test2.php "); Process p = pb. start (); InputStream in = p. getInputStream (); InputS TreamReader reader = new InputStreamReader (in); char [] buff = newchar [1024]; reader. read (buff); System. out. println (buff); // Print Out !!!!! }}
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above describes how to use Java to call PHP instances, including some content, and hope to help those who are interested in PHP tutorials.