Connecting Tech Pros Worldwide Forums | Help | Site Map

How to create PHP exe ?

Needs Regular Fix
 
Join Date: Dec 2006
Posts: 293
#1: Mar 3 '08
Hello,

I have a php script .

I want to create a php exe from it so that when a user can double clicks it a command prompt will open which will take input from the user and complete the operation.

How to do ?

ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#2: Mar 3 '08

re: How to create PHP exe ?


If you want to create a PHP exe file, you must compile it. For that you need a PHP exe compiler, which are usually not free!

Advice is to google the web for 'PHP compiler'.

Ronald
Newbie
 
Join Date: Feb 2008
Posts: 11
#3: Mar 3 '08

re: How to create PHP exe ?


I saw this....

Bambalam PHP EXE Compiler/Embedder
Created by Anders Hammar © 2006 Bambalam

Options:
-w Hide console window for windowed applications
-c Compress output exe (using UPX)
-d Do not encode PHP files
-e:extension.dll Embed and use PHP extension
-i:icon.ico Add icon to exe

- What is it?
Bambalam PHP EXE Compiler/Embedder is a free command line tool to convert PHP applications to standalone Windows .exe applications. The exe files produced are totally standalone, no need for php dlls etc. The php code is encoded using the Turck MMCache Encode library so it's a perfect solution if you want to distribute your application while protecting your source code. The converter is also suitable for producing .exe files for windowed PHP applications (created using for example the WinBinder library). It's also good for making stand-alone PHP Socket servers/clients (using the php_sockets.dll extension).

Hey, if you use this tool and like it you can make a donation to make it even better! Donors will be credited!
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#4: Mar 3 '08

re: How to create PHP exe ?


As I said in my earlier post:"usually not free". And yes, this one is. I saw one (for me an obstacle) limitation
Quote:
Currently, the converter uses a PHP runtime based on PHP 4.4.4.

Q: What about PHP 5 support?
A: I haven't got around to it, but I probably will!

Note however that some extensions use other system dlls which needs to be shipped together with your compiled exe to make it work.
But give it a try and let us know your findings. Thanks in advance.

Ronald
Needs Regular Fix
 
Join Date: Dec 2006
Posts: 293
#5: Mar 4 '08

re: How to create PHP exe ?


I am looking into that compiler.

I will give my feedback soon.
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#6: Mar 4 '08

re: How to create PHP exe ?


Quote:

Originally Posted by pankajit09

I am looking into that compiler.

I will give my feedback soon.

Thank you. Hope to hear from you soon.

Ronald
Newbie
 
Join Date: Sep 2008
Posts: 1
#7: Sep 6 '08

re: How to create PHP exe ?


Before you waste too much time with this thing you should be warned that Bambalam's claims are somewhat misleading. Or at least confusing.

First let's be clear. IT WILL NOT CONVERT YOUR EXISTING PHP WEBSITE INTO A STANDALONE APPLICATION.

So what does it do? there are several ways of looking at this. Let's say you want to write a standalone windows application and you already know PHP and don't want to learn VisualBasic or C++ etc. then you can write it with this...but only the functionality...logic, SQl calls,etc. But not display!!how do you get it to display? well there is the rub....you now have to learn to deal with something called WinBind. It is not too complicated but now that you have to deal with ALL of the stuff a browser does for you, like pictures, backgrounds, etc etc.

There is no embeded browser, not even a server.

So who is this for? basically is a way to hide your code from a client. Not a great way, but that is what it is.
Member
 
Join Date: Nov 2007
Location: Alberta, Canada
Posts: 59
#8: Sep 7 '08

re: How to create PHP exe ?


Just download VB 2008 express and learn to code...it not too hard to learn and if you need help thats what forums are for
dlite922's Avatar
Expert
 
Join Date: Dec 2007
Location: Moon, Dark Side
Posts: 1,095
#9: Sep 7 '08

re: How to create PHP exe ?


Quote:

Originally Posted by bobf

I saw this....

Bambalam PHP EXE Compiler/Embedder
Created by Anders Hammar © 2006 Bambalam

Options:
-w Hide console window for windowed applications
-c Compress output exe (using UPX)
-d Do not encode PHP files
-e:extension.dll Embed and use PHP extension
-i:icon.ico Add icon to exe

- What is it?
Bambalam PHP EXE Compiler/Embedder is a free command line tool to convert PHP applications to standalone Windows .exe applications. The exe files produced are totally standalone, no need for php dlls etc. The php code is encoded using the Turck MMCache Encode library so it's a perfect solution if you want to distribute your application while protecting your source code. The converter is also suitable for producing .exe files for windowed PHP applications (created using for example the WinBinder library). It's also good for making stand-alone PHP Socket servers/clients (using the php_sockets.dll extension).

Hey, if you use this tool and like it you can make a donation to make it even better! Donors will be credited!

WOW!

Thanks for this piece of gold.

This opened so many new doors for my app, you have no Idea!!

If I get this to work, I'll fund Bambalam what it needs. (Ahem that is get to to work and make money selling it)


Thanks,




Dan
Reply