The COM problem when converting from ASP to PHP

From: Date: Sat, 24 Apr 2004 01:08:20 +0000
Subject: The COM problem when converting from ASP to PHP
Groups: php.general 
Request: Send a blank email to php-general+get-184485@lists.php.net to get a copy of this message
Hi, 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...

« previous php.general (#184485) next »