Re[2]: [PHP] Serializing a DOM object

2002-12-31 Thread Tom Rogers
Hi, Wednesday, January 1, 2003, 5:28:43 AM, you wrote: >> Try encoding like this: >> $retval = base64_encode(serialize( domxml_open_mem( $xml ))); >> and on the next page: >> $xml = unserialize(base64_decode($xml)); >> It works via html but don't know enough about soap BC> Well, you don't have to

Re: [PHP] Serializing a DOM object

2002-12-31 Thread Boget, Chris
> Try encoding like this: > $retval = base64_encode(serialize( domxml_open_mem( $xml ))); > and on the next page: > $xml = unserialize(base64_decode($xml)); > It works via html but don't know enough about soap Well, you don't have to use soap - you can use sessions and get the same result. As for

Re[2]: [PHP] Serializing a DOM object

2002-12-30 Thread Tom Rogers
Hi, Tuesday, December 31, 2002, 2:55:39 AM, you wrote: >> In the test function, if I just serialize the $xml, return it and then call >> xmldoc_open_mem on the unserialized return string, it works fine. >> But it doesn't like it if I do the above. I'm getting the error: >> >> Warning: dump_mem(

Re: [PHP] Serializing a DOM object

2002-12-30 Thread Chris Boget
> In the test function, if I just serialize the $xml, return it and then call > xmldoc_open_mem on the unserialized return string, it works fine. > But it doesn't like it if I do the above. I'm getting the error: > > Warning: dump_mem() [function.dump-mem]: Underlying object missing > or of inv

[PHP] Serializing a DOM object

2002-12-30 Thread Boget, Chris
Consider the following: page1.php test\n"; $retval = serialize( domxml_open_mem( $xml )); return $retval; } ?> page2.php http://somepage.php' ); $xml = $soapclient->call( 'test', $parameters ); $xml = unserialize( $xml ); $xml->dump_mem(); ?> In the test function, if I ju