RE: Question...
| From: | Nold, Mark | Date: | Wed, 22 Nov 2000 01:53:55 +0000 |
| Subject: | RE: Question... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26560@lists.php.net to get a copy of this message | ||
----------------------------------------------------------------------------
-----------------
Disclaimer: The information contained in this email is intended only for the
use of the person(s) to whom it is addressed and may be confidential or
contain legally privileged information. If you are not the intended
recipient you are hereby notified that any perusal, use, distribution,
copying or disclosure is strictly prohibited. If you have received this
email in error please immediately advise us by return email at
postmaster@normandy.com.au and delete the email document without making a
copy.
----------------------------------------------------------------------------
-----------------
In PHP you can access Java class's like you would a PHP Class
EG:
$test = new Java("enspace.test.phptest");
Now you can access the variables and methods easily
$test->foo = "abcdef";
echo "Foo is ". $test->foo ;
$a = $test->dofoo();
Really simple.
My understanding is if you have PHP installed as a module the JVM only gets
instantiated once. (Of course CGI it gets fired up everytime)
As far as C libaries go to http://www.zend.com/zend/api.php and have a read.
mn
Mark Nold
markn@enspace.com <mailto:markn@enspace.com>
Senior Consultant
Change is inevitable, except from vending machines.
-----Original Message-----
From: Fraser MacKenzie [mailto:fraserm@rondaksportal.com]
Sent: Wednesday, November 22, 2000 2:01 AM
To: php-general@lists.php.net
Subject: Question...
Hi all,
I haven't been able to find any information on this out there and I would
be much appreciative if somebody could give me a hand.
I have a number of C APIs and Java APIs and I want to put the hooks into
PHP or at least be able to call them from PHP programs. Has anyone done
something like this, or know of a place that I can at least read up on how
to do this?
Thanks for your time and trouble.
Sincerely,
Fraser MacKenzie