|
From: <php...@li...> - 2008-01-21 07:55:45
|
hello,erverybody
My website is written in php script and I have to call some java fuctions(these functions is used to implement a complicated algorithms), but I find it is very difficult to debug my programme. When I forget to include some libs, the php page just display
nothing, this situation slow my speed of developing very much. I hope someone is so kindly to tell me some way to debug my programme.
I am a newer to begin programming with php_java_bridge(begin from last Monday). In the coding process, I encountered two problems:
1. I can't use new a object with the parameter .
for example:
it is ok: $obj = new Java("parser.ParseNode);
it is not ok $pobj = new Java("parser.ParseNode","/home/lvhl/apache/test/parseweb/bin/elong.htm","gb2312");
//class parser.ParseNode has a construct function : ParseNode(String str ,String encoding)
2. I can't call a non-static function fo parser.ParseNode
also use the same example:
it is ok :
$obj = new Java("parser.ParseNode);
echo $pobj->printHello(); //printHello is a static function of parser.ParseNode
it is not ok: echo $pobj->printTest(); //printTest is not a static function of parser.ParseNode
Is there anybody who is so kind to tell me why ? Thank you very much!
2008-01-21
lvhl.tech
|