Another question about java in php4
| From: | smallsnake | Date: | Thu, 10 Aug 2000 03:26:21 +0000 |
| Subject: | Another question about java in php4 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11056@lists.php.net to get a copy of this message | ||
I don't how to do that .
exa:
file: test.java
public class test{
public int ret_test(int i)
{
if (i>0) return 31;
if (i==0) return 30;
if (i<0) return 29;
return 100;
}
}
After i complimed it,then where will i put test.class ?
my php file is:
<?
$b = new Java("test");
$x=$b->ret_test(4);
echo $x;
?>
But i can't success.
Help me please