Re: Using .Net assemblies with PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux