Instantiate .NET Classes in PHP5?
| From: | Matthias HALDIMANN | Date: | Fri, 30 Apr 2004 08:49:20 +0000 |
| Subject: | Instantiate .NET Classes in PHP5? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-185022@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 experience?
Thanks,
Matthias