phalanger

Phalanger cant find my php classes

对着背影说爱祢 提交于 2020-01-14 05:45:09
问题 After this question I found a good (up to date) example to follow here. I successfully got PHP.Core libraries working in VS but still having problems finding my php classes. The tutorial is simple enough however dynamic phpObj = globals.@class.PhpClass(); never finds my php class. I have tried with the example file default.php (classname: PhpClass) and with my own php classes which are similar but have a different name. What am I missing here? I have tried the option Project Properties

Using curl with Phalanger

拈花ヽ惹草 提交于 2020-01-04 05:40:10
问题 I'm trying to use the PHP Phalanger curl library php_curl.mng.dll in a .NET application. I set up my App.config as follows: <?xml version="1.0" encoding="utf-8" ?> <configuration> <phpNet> <classLibrary> <add assembly="php_curl.mng, Version=2.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="curl" /> </classLibrary> </phpNet> </configuration> and am trying to call curl_init() in C#: PHP.Library.Curl.curl_init(); The code compiles with no errors but an exception gets fired when

“Hello world” in Phalanger PHP compiler

允我心安 提交于 2019-12-22 16:00:11
问题 I want my console program simply be run using Phalanger. I did not use IIS or .net in any way. Is it possible to use Phalanger in the same way that we use php.exe -f hello.php ? How to compile and run following script using Phalanger. <?php echo "Hello World from Phalanger!"; 回答1: Phalanger works as a compiler and runtime for PHP. The easiest way is to install Phalanger Tools for Visual Studio, which allows you to create, build and debug console application. Anyway, without Visual Studio;

“Hello world” in Phalanger PHP compiler

只愿长相守 提交于 2019-12-22 15:58:07
问题 I want my console program simply be run using Phalanger. I did not use IIS or .net in any way. Is it possible to use Phalanger in the same way that we use php.exe -f hello.php ? How to compile and run following script using Phalanger. <?php echo "Hello World from Phalanger!"; 回答1: Phalanger works as a compiler and runtime for PHP. The easiest way is to install Phalanger Tools for Visual Studio, which allows you to create, build and debug console application. Anyway, without Visual Studio;

Phalanger c# DLL assembly imported but cannot be called

元气小坏坏 提交于 2019-12-08 10:47:05
问题 I am having a problem where I cannot get the c# code to show up or even be usable while using Phalanger. By their definition, all I have to do is add <add assembly="Utility"> which happens succesfully because if I change the name slightly, the page crashes, so I know its actually picked up on the library. However when I try <?php use Utility\...; //new version of phalanger uses "use" not import ?> I get nothing. Not only does it not show up in the intellisense but when I actually try to call

“Hello world” in Phalanger PHP compiler

牧云@^-^@ 提交于 2019-12-06 09:40:51
I want my console program simply be run using Phalanger. I did not use IIS or .net in any way. Is it possible to use Phalanger in the same way that we use php.exe -f hello.php ? How to compile and run following script using Phalanger. <?php echo "Hello World from Phalanger!"; Jakub Míšek Phalanger works as a compiler and runtime for PHP. The easiest way is to install Phalanger Tools for Visual Studio, which allows you to create, build and debug console application. Anyway, without Visual Studio; first you have to compile the code phpc hello.php /out:hello.exe Optionally, if you have more files