Java class Properties with PHP4
| From: | Nold, Mark | Date: | Wed, 28 Jun 2000 07:04:47 +0000 |
| Subject: | Java class Properties with PHP4 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-3503@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.
----------------------------------------------------------------------------
-----------------
Hi all,
I have a Java class which works with PHP, until i try to set some of the
Public properties.
The .java looks like:
public class imgTest {
public String foobar;
public String test() {
return this.foobar;
}
}
And the .php looks like:
$myimg = new Java("imgTest");
$myimg->foobar = "Hello World";
echo "\n<br>Test Results are " . $myimg->test();
I get an error on the line $myimg->foobar which is:
Warning: ÐÖr in c:\web\site\dev\htdocs\test\java\javachart1.htm on line 20
Should i be able to set properties this way? The sample jawt.php does this
(but doesnt work on my pc)
Is the strange error messages: "Warning: ÐÖr" something related to Windows?
or the JDK? or is just the way it works?
I am using windows 98 + Apache + JDK 1.2.2 to test all this, but it will
eventual run on un*x + windows. (If i get it all working)
Or have i missed something obvious?
mn
Mark Nold
markn@alverstone.com.au
Systems Consultant
Change is inevitable, except from vending machines.