5
It would be possible to create and open windows DLL libraries in php?
I want to organize my php classes into dll so that they can be used in both php and C#, if there is an alternative also serves.
5
It would be possible to create and open windows DLL libraries in php?
I want to organize my php classes into dll so that they can be used in both php and C#, if there is an alternative also serves.
8
You can do this using the class WITH.
But before, you have to register the dll in windows by running this command at the prompt:
REGSVR32 MinhaDll.dll
Now that the dll is registered, you do this to access the DLL:
$minha_dll = new COM(‘MinhaDll.Objeto’);
"minha_dll" is the name of dll and Object is the object within the dll you want to use. Now, for example, to call a method within your dll that encrypts a text:
$texto_encriptado = null;
$input = ‘Texto que vai ser encriptado.’;
$minha_dll->EncriptaString($input, $texto_encriptado );
(assuming you have a method called Encryption that accepts these parameter types)
1
Unable to open DLL files via an Apache/Unix server. Please take this into account.
If you’re using an IIS server, I think this reading may be useful. You will need to use a COM server and use Idispatch but, it is not guaranteed to work.
João, DLL is a fairly generic term and not a specific format. What will define whether it is possible to open files in this format on Linux, or with Apache, are the data contained in the file.
1
Do not use this kind of nomenclature for PHP, It’s still not guaranteed that everything works the way you expect it to, and the version of php are the most current (5.4.5), and on many servers do not follow such update and the link of the website dependencies, require PHP For Windows and . Net Support and consequently server iis, whereas the apache wheel.
Browser other questions tagged php c# dll
You are not signed in. Login or sign up in order to post.
Excellent thanks so much for the help.!
– Leandro Curioso