PHP5/Win: instantiation of .net objects does not work
| From: | Matthias HALDIMANN | Date: | Tue, 04 May 2004 14:29:38 +0000 |
| Subject: | PHP5/Win: instantiation of .net objects does not work | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-23621@lists.php.net to get a copy of this message | ||
PHP 5 should allow you to instantiante .net classes.
However, I can't get the classic example
<?php
$stack = new DOTNET("mscorlib", "System.Collections.Stack");
$stack->Push(".Net");
$stack->Push("Hello ");
echo $stack->Pop() . $stack->Pop();
?>
to work. It gives a "Failed to instantiate .Net object" error, although the
.NET framework is installed.
Does anyone have any (successful or unsuccessful) experience?
Thanks,
Matthias