Re: WDDX
| From: | Papp Gyozo | Date: | Sat, 08 Dec 2001 14:02:36 +0000 |
| Subject: | Re: WDDX | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77119@lists.php.net to get a copy of this message | ||
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" <conpulpa@hotmail.com>
To: <php-general@lists.php.net>
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: php-general-unsubscribe@lists.php.net
| For additional commands, e-mail: php-general-help@lists.php.net
| To contact the list administrators, e-mail: php-list-admin@lists.php.net
|