Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Comments for: jesus20000402

Message # 1013600:
Date: 09/30/02 17:52
By: tryin 2help
Subject: RE: Does PHP support WDDX Recordsets ??

Per AlainL post, look at page: http://www.php.net/manual/en/function.wddx-deserialize.php

To Quote php at mike2k dot com:

if you have WDDX data coming from a third party source and it isnt being parsed correctly in your php, try translating their WDDX. we have a third party sending us WDDX from cold fusion, and it uses a <recordset> element, which PHP seems to ignore (looking around the web we found some other people having trouble) so the (hopefully temporary) solution we found was to translate the WDDX midstream and then we were able to parse it:

$url = "http://somedomain.com/blah.wddx";
$fp = fopen($url,"r");
$page = fread($fp,10000);
fclose($fp);
$page = str_replace("<recordset","<struct",$page);
$page = str_replace("</recordset","</struct",$page);
$page = str_replace("<field","<var",$page);
$page = str_replace("</field","</var",$page);
$values = wddx_deserialize($page);
while(list($key,$val) = each($values)) {
print "$key => $val
";
}

this works for us. it's a hack, and hopefully php will support this in the future or something.

Previous Message | Next Message


Comments:
does jscript support wddx?faraz05/01/05 12:35
is WDDX still being supported?Raymond Sassine07/23/03 22:36
RE: Does PHP support WDDX Recordsets ??tryin 2help09/30/02 17:52
Help with PHP4and XMLradhakrishna08/23/02 11:51
How to use xml function in php??dysow05/29/02 02:46
RE: Deserialize packetBart Stutton04/10/02 17:25
Stability / PracticalityRobert Yelvington03/22/02 01:16
Deserialize packetandriani9701/04/02 06:36
RE: Does PHP support WDDX Recordsets ??AlainL12/21/01 02:19
RE: How to use DOM ?Tobias Beuving12/16/01 15:44
RE: Does PHP support WDDX Recordsets ??Jarek Zgoda12/04/01 06:41
RE: wddx under win32Mike06/09/01 20:48
RE: Does PHP support WDDX Recordsets ??Marlow06/06/01 06:49
PHP XML CODES GENERATORMonic04/20/01 20:01
where is you company located?Tyson03/18/01 03:16
wddx under win32Mikey Likes It03/12/01 23:00
RE: Does PHP support WDDX Recordsets ??Joao Marcus02/17/01 12:36
Help with PHP and XMLcullan crothers01/03/01 16:02
How to use DOM ?Tran Anh Nhan12/27/00 22:37
RE: Does PHP support WDDX Recordsets ??Cory Factor10/26/00 19:57
Does PHP support WDDX Recordsets ??jack-e06/28/00 19:24
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.