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 your

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 use soap

[PHP] Serializing a DOM object

2002-12-30 Thread Boget, Chris
Consider the following: page1.php ?php // initializing soap server object, blah, blah, whatever here. // the important function, dumbed down to the barest essentials. // function test() { $retval = ; $xml = rootrowelementtest/element/row/root\n; $retval = serialize(

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 invalid

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()