Try
$com->GenerateSigningKeys(&$privkey,&$pubkey); and enable
allow_calltime_pass_by_reference or whatever it's called..

-- 
// DvDmanDT
MSN: dvdmandt€hotmail.com
Mail: dvdmandt€telia.com
"Steven Kidd" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hi,
>
> <<I think it's more suitable for the php-windows list so I post here
> again,sorry. -- stev>>
>
> When I converting lines of ASP code:
>
> <%
> dim keysobjs
> dim privkey
> dim pubkey
> dim seed
> Set keysobj= CreateObject("wmrmobjs.WMRMKeys")
> keysobj.GenerateSigningKeys privkey, pubkey
> seed = keysobj.GenerateSeed()
> Response.Write privkey
> Response.Write "<br>"
> Response.Write pubkey
> Response.Write "<br>"
> Response.Write seed
> %>
>
> To the PHP one:
>
> <?
> $com = new COM("wmrmobjs.WMRMKeys");
> $com->GenerateSigningKeys($privkey,$pubkey);
> $seed = $com->GenerateSeed();
>
> echo "Private key=".$privkey;
> echo "<br>";
> echo "Public key=".$pubkey;
> echo "<br>";
> echo "Seed=".$seed;
> ?>
>
> In the ASP code everything works pretty well,
> In the PHP code, although I can obtain the value of $seed,
> the $privkey and $pubkey are null,
> kindly check the code for me, thx...

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to