java调用php实例

java调用php 实例

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);//打印出!!!!!
}
}

‘).addclass(‘pre-numbering’).hide();
$(this).addclass(‘has-numbering’).parent().append($numbering);
for (i = 1; i

Posted in 未分类