What do you get as result from a 'Show source...' in your browser?

AFAIK, NS4.76 does not display unrecognized HTML element, and it
treats your script's output as HTML source.

try:
<?php print (htmlspecialchars(wddx_serialize_value($one_var))); ?>

----- Original Message ----- 
From: "con pulpa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 08, 2001 11:57 AM
Subject: [PHP] WDDX


| Hi EVERYONE!
| 
| I'm running RH7.1 with PHP version 4.04pl1 and
| Apache1.3.19-5. A simple php script <?php phpinfo(); ?>
| tells me that the library is configured with the
| '--enable-wddx' and '--with-xml' options.
| 
| I'm using netscape4.76 and konqueror(kde 2.1.1) browser.
| 
| Now running a slightly more complicated script from one of
| the online tutorials
| 
| <?php
| $one_var = "I was serialized on 2001-12-08";
| print wddx_serialize_value($one_var);
| ?>
| 
| I find that it produces no output at all!
| There are no errors reported in the log files...
| 
| Then, if I put an echo statement before the print:
| <?php
| echo "==>WDDX Test";
| $one_var = "I was serialized on 2001-12-08";
| print wddx_serialize_value($one_var);
| ?>
| 
| I get the following output.
| ==>WDDX Test I was serialized on 2001-12-08
| 
| I'm not too concerned about this wierd behaviour;
| However, I was expecting this code to produce something
| dressed in XML:
| 
| <wddxPacket version='0.9'>
| <data>
| <string>I was serialized on 2001-12-08</string>
| </data>
| </wddxPacket>
| 
| Can anyone help me?
| 
| Thanks, Conpulpa
| 
| 
| 
| 
| 
| 
| _________________________________________________________________
| Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
| 
| 
| -- 
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| To contact the list administrators, e-mail: [EMAIL PROTECTED]
| 


Reply via email to