AW: [PHP] Java-Object

2002-04-29 Thread Bedilu Habte

Hallo Henning,

thanks for your suggestion. The result...

print_r($result);
resulted in:

Objectjava Object
(
[0] = 2
)

var_dump($result);
had given me:

object(java)(1) {
  [0]=
  int(2)
}


Can you make something out of this.



-Ursprungliche Nachricht-
Von: Henning [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 29. April 2002 11:40
An: Habte, Bedilu
Betreff: Re: [PHP] Java-Object


Bedilu Habte wrote:

 It appears that the transformation and rendering is performed without
errors
 ( according to
 the System-output). However, in the context I used, $result contains the 6
 characters
 'Object' which was supposed to contain the pdf document.


that just means that the variable contains data of type object


 Any idea on how to extract the content out of a Java-Object in php?


not exactly right now, i don't know nothing about the things you do
there, but as much as i know of data handling and objects, you could
maybe use print_r($result) or var_dump(result) to examine the data in
your object, maybe the data you need is just some property of your object.

take care if your pdf is really large, these commands result in dumping
all the data of the variable on the screen...

henning




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: AW: [PHP] Java-Object

2002-04-29 Thread Henning

Bedilu Habte wrote:

print_r($result);

 resulted in:
 
 Objectjava Object
 (
 [0] = 2
 )
 
 var_dump($result);
 had given me:
 
 object(java)(1) {
   [0]=
   int(2)
 }




it means that you have an object with a property field of type integer 
and a value of 2.

possibly nmot what you want or need. but it could mean that you did 
something wrong in the usage of the class or in the usage of java with 
php in general.

what irritates me a bit is the java in the brackets of the var_dump 
output, that could mean that the object is somehow of type java or 
something like that could it be one has to transform that to use it in php?

are you sure you did everything right with the java/php combination? did 
you test that with other, easier things?

did you test the class on the command line with success?

did you read the manual of everything that is involved in your task?

ok, that should be everything i have to say about that, as i said, i 
have no experience in using java classes from php.

i could only help you until now in finding out more about the data and 
type of your object...


henning


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php