Page 1 of 1
How to make a software our own(.exe file for install in PC)?
Posted: Thu May 22, 2008 12:21 am
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
Re: How to make a software our own(.exe file for install in PC)?
Posted: Thu May 22, 2008 2:16 am
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).
Re: How to make a software our own(.exe file for install in PC)?
Posted: Thu May 22, 2008 4:05 am
by N1gel
I think there is a version of php for writing client side GUI applications.
Have a look at
http://gtk.php.net/
Re: How to make a software our own(.exe file for install in PC)?
Posted: Thu May 22, 2008 8:46 am
by Mordred
A small web server for windows, if that's what you need:
http://www.badblue.com/helpphp.htm