我试图从php脚本调用C#dll:
<?
$stack = new DOTNET("mscorlib", "System.Collections.Stack");
$stack->Push(".Net");
$stack->Push("Hello ");
echo $stack->Pop() . $stack->Pop();
?>
我继续在运行此脚本时找不到DOTNET类
我的PHP.INI文件如下所示:
[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
; http://php.net/com.typelib-file
;com.typelib_file =
; allow Distributed-COM calls
; http://php.net/com.allow-dcom
com.allow_dcom = true
[COM_DOT_NET]
extension=php_com_dotnet.dll
; autoregister constants of a components typlib on com_load()
; http://php.net/com.autoregister-typelib
;com.autoregister_typelib = true
; register constants casesensitive
; http://php.net/com.autoregister-casesensitive
;com.autoregister_casesensitive = false
我正在使用Php5.4版本,我在以下文件夹中有php_com_dotnet.dll:
v5.4\ext
有人可以帮助我解决我所缺少的内容或有关我如何解决这个问题的信息吗?