时间:2021-07-01 10:21:17 帮助过:26人阅读
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();
InputStreamReader reader = new InputStreamReader(in);
char[] buff = newchar[1024];
reader.read(buff);
System.out.println(buff);//打印出!!!!!
}
}
echo"!!!!!"?>
').addClass('pre-numbering').hide();
$(this).addClass('has-numbering').parent().append($numbering);
for (i = 1; i <= lines; i++) {
$numbering.append($('').text(i));
};
$numbering.fadeIn(1700);
});
});
以上就介绍了Java调用PHP 实例,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。