php-windows Digest 20 May 2011 22:48:13 -0000 Issue 3951

Topics (messages 30630 through 30630):

Re: Using .Net assemblies with PHP
        30630 by: Trevor

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On 5/18/2011 5:51 PM, Richard Quadling wrote:

Interesting. As I said earlier, I use PHP+COM to talk to Crystal
Reports. One of the issues I have is that the COM interface is no
longer part of the current version of Crystal. The last one was CR XI
Release 2. Newer versions are only supporting .NET and Java.

If UniversalCCW can provide me with access to the latest .NET
libraries, then that seems like a really useful addition.


It sounds like you'll want to give it a try. Once I had the library installed, this is all it took to encrypt a CC number:

$COM = new COM("Universal_CCW.Universal_CCW_Factory");
$asmb_full_name = "assemblyname, Version=1.0.0.2, Culture=Neutral, PublicKeyToken=d3356e74613fd6c5";
$crypto = $COM->New_Object("test", $asmb_full_name, "namespace.class");
$cc_enc = $crypto->Call_Method("ofEncryptString", $cardNumber);

- Trevor

--- End Message ---

Reply via email to