Re: Using .Net assemblies with PHP

From: Date: Fri, 20 May 2011 22:48:05 +0000
Subject: Re: Using .Net assemblies with PHP
References: 1 2 3 4 5 6 7  Groups: php.windows 
Request: Send a blank email to php-windows+get-30630@lists.php.net to get a copy of this 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

« previous php.windows (#30630) next »