2009-11-10 75 views
2

我試圖在.NET應用程序中使用PHP Phalanger捲曲庫php_curl.mng.dll。我建立了我的App.config如下:在Phalanger中使用捲曲

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
    <phpNet> 
    <classLibrary> 
     <add assembly="php_curl.mng, Version=2.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="curl" /> 
    </classLibrary> 
    </phpNet> 
</configuration> 

,我試圖調用curl_init()在C#:

PHP.Library.Curl.curl_init(); 

代碼編譯沒有錯誤,但在到達指令異常時,都會激發:

PHP.Core.PhpException: Call to undefined external function 'curl_init', extension 'php_curl' - check configuration. 

會有人知道我失蹤了嗎?

謝謝,

埃裏克。

回答