Questions tagged [phalanger]

Phalanger is a managed PHP implementation for the Microsoft .NET platform.

Phalanger is managed PHP implementation (compiler and runtime) introducing the PHP language into the family of compiled .NET languages. Phalanger gives web-application developers the ability to benefit from both the ease-of-use and effectiveness of the PHP language and the power and richness of the .NET platform taking profit from the best from both sides.

There are zero commits in the last 23 months. This is likely because of a new implemation on .net core which is named peachpie

51 questions
1
vote
1 answer

Asp.Net Mvc Filemanager Call to undefined function error

Error: Call to undefined function: 'session_id' in c:\users\ardaa\documents\visual studio 2015\Projects\Filemanager\Filemanager\filemanager\config\config.php on line 3, column 5. Project Url : https://github.com/Burakk46/Filemanager
Burakk46
  • 11
  • 1
1
vote
2 answers

How to build phpalanger phpc?

I've tried to build https://github.com/DEVSENSE/Phalanger, but after the build process it shows build errors. I tried VS 2015, maybe there it just a question of a wrong version?
And
  • 97
  • 5
1
vote
1 answer

Getting "Call to undefined function: 'define': in phalanger web site

I'm just starting out with Phalanger and hit a road block. I installed the latest from the Visual Studio Gallery and tried to create a simple web page. The sample web page that is create with a project works, but once I add to the…
Robert McCabe
  • 495
  • 1
  • 4
  • 21
1
vote
0 answers

Encoding cannot be loaded

I'm having a problem with Phalanger 3.0 running as a console app on Mono 4.0.1 Program.php Compile $mono phpc.exe Program.php /out:Program.exe Run $mono Program.exe Output Encoding cannot be…
Bros Toch
  • 21
  • 1
1
vote
1 answer

Running a c# application from a PHP Script

I want to take two variables from a php script and insert them into a C# program. I have searched online and found a reference to Phalanger(which seems to be a tool to develop php using .Net). It seems like overkill for only needing two variable…
Aaron
  • 4,380
  • 19
  • 85
  • 141
1
vote
1 answer

Phalanger: unexpected token 'List'

We have had an app sitting around which was written in PHP and runs on Phalanger. As a result, we integrated some .NET element into it. However, how we seem to be suffering of issues caused by the .NET assemblies as it can no longer recognize them…
Serguei Fedorov
  • 7,763
  • 9
  • 63
  • 94
1
vote
2 answers

How to use Phalanger to compile php into standalone console app?

I would like to make a stand alone, completly independent command line application of my php script. I found Phalanger and tried to compile it using the phpc file... it did create an exe and it worked great on my computer, but when i try to use it…
Daniel
  • 319
  • 8
  • 17
1
vote
2 answers

G-WAN + Phalanger

OK i have this crazy idea, since php does not play nice with G-WAN, maybe the solution is to use phalanger to compile php code to c# mono assembly and then use it from g-wan? Anyone has any experience with this combination and could help? OR maybe…
Programista
  • 1,037
  • 5
  • 15
  • 38
1
vote
1 answer

Phalanger PhpNetCore cannot be found

I am trying to setup Phalanger to run on a remote IIS using the http://www.php-compiler.net/?p=354 guide. Because I am trying to override the server configuration from the web.config, I have the following line added in:
Serguei Fedorov
  • 7,763
  • 9
  • 63
  • 94
0
votes
5 answers

PHP in Visual Studio

I'm deving PHP at the moment using Visual Studio as my IDE. I've installed the Phalanger Visutal studio integration to get PHP projects etc but I want VS to recognise the PHP start and end tags like the standard ASP ones. i.e when I type <% %>…
Tim Bailey
  • 571
  • 1
  • 3
  • 15
0
votes
1 answer

SQLite use in Phalanger

I'm currently trying to compile a functioning PHP project into a .Net dll. My Phalanger/PHP solution uses PDO and SQLite. When I get to the portion which creates my PDO object: $this->db = new \PDO('sqlite:'.$fileName, null, null,…
Troy Frazier
  • 391
  • 3
  • 13
0
votes
0 answers

How to Use COM Object within Compiled PHP

I'm trying to access WMI using COM objects with PHP. The method below works very well with PHP on browser, but I can't make it work when the PHP file compiled as a Windows console application. $obj = new COM ( 'winmgmts://localhost/root/CIMV2'…
0
votes
0 answers

First test: Navigate Webform and additional headers?

I tried a tutorial from Phalanger with a Webbrowser and it works! :) But now I tried to autologin to a website but I can not send additional authentification headers with the Windows Webform control. It gives me method not found! Did I miss s/th? …
Micromega
  • 12,486
  • 7
  • 35
  • 72
0
votes
0 answers

Windows forms navigate webrowser method not available?

I try to navigate to a url and send a new http header with phalanger but when I use the navigate method it gives me an error message there is no method available (even with overload and so). How can I send my own http header? Example: This dosesn't…
Micromega
  • 12,486
  • 7
  • 35
  • 72
0
votes
1 answer

ASP.NET PHP View: using Phalanger for only one page

QUESTION Is it possible to use Phalanger (https://phalanger.codeplex.com/) in ASP.NET MVC for just one view and leave everything else using the normal Razor View Engine? SITUATION I am currently using ELFinder in my site which I integrated using the…
Matt
  • 6,787
  • 11
  • 65
  • 112