PHP bir dll dosyasını çalıştırın

0 Cevap php

i benimle bir dll dosyası var. Ben bunun kaynak kodunu bilmek ve aynı zamanda ne yöntemler biliyorum. Ne istediğim php o dll dosyasını aramak. Ben o dll dosyası parametrelerini geçmek ve PHP hem de bu dosyadan değerleri döndürmek gerekir. Bir google ne i bulmak arama yaptıktan sonra, biz dll dosyalarını okumak için php COM ve DOTNET sınıf mevcuttur. Onların dokümantasyon çok yardımcı değildir.

DOTNET sınıf için, örneğin

$stack = new DOTNET("mscorlib", "System.Collections.Stack");

What is "mscorlib" Is it the dll file name? When i try to create a object, it gives fatal error.

EDIT

İşte benim dll dosyası kodudur.

namespace datacubetest
{
   public class datacubetest
   {
       private string myvalue;
       public bool SetMyValue(string psMyValue)
       {
           myvalue = psMyValue;
           return true;
       }
       public string GetMyValue()
       {
           return myvalue;
       }
   }
}

Benim localhost çalıştırmak çalışıyorum. Yani php i setValue ve getValue için yöntemler aramak istiyorum.

0 Cevap