By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,748 Members | 1,427 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,748 IT Pros & Developers. It's quick & easy.

Standalone WIN32 application in PHP

P: n/a
Hi,

Is it possible to write a standalone Win32 application using PHP? Like
creating a window from the PHP script, putting buttons and textboxes on
it, handling clicks on the buttons etc...,

TIA,
--
Spam is spam no matter who's doing it or for what reason.

Jul 17 '05 #1
Share this Question
Share on Google+
11 Replies


P: n/a
Michiel Overtoom wrote:
Is it possible to write a standalone Win32 application using PHP? Like
creating a window from the PHP script, putting buttons and textboxes on
it, handling clicks on the buttons etc...,


Check out http://gtk.php.net/

Chris

--
Chris Hope
The Electric Toolbox Ltd
http://www.electrictoolbox.com/
Jul 17 '05 #2

P: n/a
Chris Hope wrote:
Michiel Overtoom wrote:

Is it possible to write a standalone Win32 application using PHP? Like
creating a window from the PHP script, putting buttons and textboxes on
it, handling clicks on the buttons etc...,

Check out http://gtk.php.net/

Chris


I heard there is the limitation of php never collecting garbage until
the application is shut down, or is this solved with php5?

Greetings,

Henk Verhoeven,
www.phpPeanuts.org.

Jul 17 '05 #3

P: n/a
If you know PHP why not just spend an afternoon getting cozy with c++
and use that? Then you can make executable files and you'll be opened up
to a whole new world. C++ is pretty much exactly the same as PHP but
there are some different things to remember.
Jul 17 '05 #4

P: n/a
No I think this is not possible.
PHP was meant to be an interpreted scripting language and even GTK is used
somehow but for Windows, it is not possible.

"Michiel Overtoom" <"moto???????????????? wrote in message
news:40***************@news.xs4all.nl...
Hi,

Is it possible to write a standalone Win32 application using PHP? Like
creating a window from the PHP script, putting buttons and textboxes on
it, handling clicks on the buttons etc...,

TIA,
--
Spam is spam no matter who's doing it or for what reason.

Jul 17 '05 #5

P: n/a
Noah from IT Goes Click <ne******@itgoesclick.com> wrote:
If you know PHP why not just spend an afternoon getting cozy with c++
and use that? Then you can make executable files and you'll be opened up
to a whole new world. C++ is pretty much exactly the same as PHP but
there are some different things to remember.


Yes, I know how to use C++ to write Windows applications, I have done it
for years (using Borland and Microsoft tools).

But I was just curious if I could use PHP for that, since I like PHP as
a simple yet powerful programming language.

GTK+ in combination with PHP looks promising at the moment.

Cheers,

--
Spam is spam no matter who's doing it or for what reason.

Jul 17 '05 #6

P: n/a
Chris Hope <bl*******@electrictoolbox.com> wrote:
Michiel Overtoom wrote:
Is it possible to write a standalone Win32 application using PHP? Like
creating a window from the PHP script, putting buttons and textboxes on
it, handling clicks on the buttons etc...,


Check out http://gtk.php.net/

Chris


That is a good tip, thanks alot!
--
Spam is spam no matter who's doing it or for what reason.

Jul 17 '05 #7

P: n/a
> No I think this is not possible.
PHP was meant to be an interpreted scripting language and even GTK is used
somehow but for Windows, it is not possible.


It is, but maybe not comfortable. GTK runs on Windows too.
Jul 17 '05 #8

P: n/a
Henk Verhoeven <ne**@phppeanutsREMOVE-THIS.org> wrote in message news:<c6**********@news5.tilbu1.nb.home.nl>...

I heard there is the limitation of php never collecting garbage until
the application is shut down, or is this solved with php5?


AFAIK yes (gc problem) and no (not solved).
Jul 17 '05 #9

P: n/a
"Lothar Scholz" <ll*****@web.de> wrote in message
news:6e*************************@posting.google.co m...
No I think this is not possible.
PHP was meant to be an interpreted scripting language and even GTK is used somehow but for Windows, it is not possible.


It is, but maybe not comfortable. GTK runs on Windows too.


Yeah, I've written a little installer using PHP-GTK before that runs on
Windows. It's rather painful because there's no threading. Found myself
inserting message loops throughout the code to get UI changes to appear--a
la PeekMessage/DispatchMessage in good old Win16 programming. Laying out
widgets is also kinda hard in the GTK model. Another annoying thing is that
you can't change the application icon (unless you edit the executable's
resource directly).

Python, I've heard, is a good choice for GUI stuff. In my opinion the best
platform for Windows development is Borland Delphi. The performance of a
compiled language without the pain of C/C++.
Jul 17 '05 #10

P: n/a
"Chung Leong" <ch***********@hotmail.com> wrote in message news:<CJ********************@comcast.com>...
Yeah, I've written a little installer using PHP-GTK before that runs on
Windows. It's rather painful because there's no threading. Found myself
inserting message loops throughout the code to get UI changes to appear--a
la PeekMessage/DispatchMessage in good old Win16 programming. Laying out
widgets is also kinda hard in the GTK model. Another annoying thing is that
you can't change the application icon (unless you edit the executable's
resource directly).
Isn't the normal way to execute short chunks of code in Idle/Timer
handlers ?
Python, I've heard, is a good choice for GUI stuff. In my opinion the best
platform for Windows development is Borland Delphi. The performance of a
compiled language without the pain of C/C++.


WxPython - a wrapper around WxWidgets - is the best GUI Toolkit for
Python.
And Borland (after the fiasco with there CLX Kylix Environment) are
now also moving to WxWidgets in the next Delphi/CBuilder release.
Jul 17 '05 #11

P: n/a
"Lothar Scholz" <ll*****@web.de> wrote in message
news:6e**************************@posting.google.c om...

Isn't the normal way to execute short chunks of code in Idle/Timer
handlers ?


True enough, but that's rather hard to structure.
Jul 17 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.