Page 1 of 1

Using Phlanger pre-compiled .dll in IIS

PostPosted: January 14th, 2014, 5:21 pm
by evbase
Hi,

We want to be able to use Phalanger to compile our PHP into a .NET format without any source code visible and be able to use it in IIS. The trick is we need the compiled version to work in IIS without having Phalanger installed on the host machine. Is this possible and if it is, the problem that we are running into as the "default document" the Phalanger creates when compiling a PHP project.

Thanks,

Re: Using Phlanger pre-compiled .dll in IIS

PostPosted: January 14th, 2014, 5:49 pm
by Jakub Misek
hi,

Phalanger compiles bunch of code into single DLL which you can deploy on IIS server.
Code: Select all
phpc.exe /target:web /root:. /recurse:. /out:Bin /static+ /debug- 2> build.log


Also if you copy Phalanger binaries into /Bin, you don't have to install it on the target server. You only have to add additional configuration that installer creates in %WinDir%\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config into your we.config.