Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm a .NET developer and usually I wrote apps/services that can run under Linux using Mono.
Today I started using DOTNET php function and I was able to use it on Windows/Apache:

<?php
try{
    $csclass = new DOTNET("CSharpCOM, Version=1.0.0.0, Culture=neutral, ".
                          "PublicKeyToken=beb607ae770f5750",
                          "CSharpCOM.CSharpCOMClass");
    echo $csclass->Base64("Io mi chiamo Marco Giacinti"),"\n";
    echo $csclass->Random2(10,20),"\n";
    echo $csclass->Random1(5),"\n";
} catch (Exception $e) {
    echo 'Caught exception: ',  $e->getMessage(), "\n";
}
?>

where CSharpCOM.CSharpCOMClass is a DLL developed with Framework 3.5 and installed in GAC using gacutil -i path\CSharpCOMClass.dll.
When I save this script as dotnet.php and navigate to http://localhost/dotnet.php Apache respond with

HTTP 500 internal error

Is there any way to use DOTNET php function on Ubuntu?

share|improve this question

1 Answer 1

The documentation for DOTNET() are in the "Windows Only Extensions" section. I'm guessing that the other PHP binaries don't even have this function compiled.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.