2009-11-10 78 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. 

会有人知道我失踪了吗?

谢谢,

埃里克。

回答