Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to embedd PHP as a scripting language into a desktop application

I know that my customers know PHP because i'm working on a PHP Tool (Running as a MFC Desktop Program)

Is it possible to embedd the PHP interpreter in a general purpose way like Python, Ruby, Lua or Javascript? And if yes - is it a hack or is there a clean solution.

like image 345
Lothar Avatar asked Sep 01 '10 19:09

Lothar


1 Answers

Can you rewrite the language using PHP-GTK? That's how I make Win32 PHP apps.

If you're running .NET, then you need to check out Phlanager, and then the answer is definitely yes.

Finally, there's various PHP compilers that can compile PHP code into DLLs that your apps can use natively. see: http://phpcompiler.org/

like image 133
Theodore R. Smith Avatar answered Sep 30 '22 20:09

Theodore R. Smith