How to make a software our own(.exe file for install in PC)?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phpdoubts
Forum Newbie
Posts: 2
Joined: Thu May 22, 2008 12:10 am

How to make a software our own(.exe file for install in PC)?

Post by phpdoubts »

Hi
Dear Forum members!

I got one doubt that
"Can we make .php file project into a small installing software to install in System as an application to run"?
I mean.........like games and some small small applications!

Reply me the solution...............
Thanks
User avatar
Verminox
Forum Contributor
Posts: 101
Joined: Sun May 07, 2006 5:19 am

Re: How to make a software our own(.exe file for install in PC)?

Post by Verminox »

Techincally, yes, you can just make a C/C++ program that calls the PHP interpreter and executes some PHP code, but that would be rather pointless because PHP does not have inbuilt support for desktop GUI, and all you will achieve is getting a text response from PHP into the C/C++ program. If you were to use C/C++/Java/etc for your application, I suggest you make your entire application in that language and forget about PHP.

If you want the usual PHP-generates-HTML method, then you can just install a webserver and PHP locally and make a shortcut/link pointing to say "firefox http://localhost/myapp/" and that will run the application. If your user/customer does not understand what PHP/HTML is you can just tell him to click on the shortcut and it should work fine (provided the webserver is running). Note though that this will only generate HTML pages like a website so if you want something interactive like games you need to code that on the client side (eg. ECMAScript).
User avatar
N1gel
Forum Commoner
Posts: 95
Joined: Sun Apr 30, 2006 12:01 pm

Re: How to make a software our own(.exe file for install in PC)?

Post by N1gel »

I think there is a version of php for writing client side GUI applications.

Have a look at http://gtk.php.net/
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: How to make a software our own(.exe file for install in PC)?

Post by Mordred »

A small web server for windows, if that's what you need:
http://www.badblue.com/helpphp.htm
Post Reply