473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Standalone WIN32 application in PHP

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
11 2181
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
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
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
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
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
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
> 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
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
"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
"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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sandeep Gupta | last post by:
Hi, I've written a commercial application that uses Python scripts for some of the functionality. Installing the Python portion of the application requires me to first install Python, and then...
6
by: uri bushey | last post by:
I have a Python program that is built on an infrastructure of quite a few other programs, but I would like to create a standalone nonetheless. It doesn't necesarily have to be its own executable,...
5
by: Martin Kock | last post by:
Hi, I'm writing a small application in Borland C++ Builder 4. Just for your information, it is a win32 application with a GUI, programmed in WinXP, but supposed to run on Win98. Anyways, my...
2
by: TGF | last post by:
Hello, How do you build a *.exe app without having to depend on other dll's such as 'mscoree.dll', etc... I have an application I want to build, but I want to make sure that any needed dll's are...
3
by: Frankie | last post by:
I want to build a standard application (without .NET Framework features) with my Visual C++.NET. I want to produce a standalone executable application that runs in another PC without .NET...
8
by: Tony Johansson | last post by:
Hello! I just wonder what the difference is between a native win32-app and MFC. What I know is that you can use Win32 API in both cases. I think an MFC application is connected with a GUI...
1
by: Martin Raychev | last post by:
Hi everyone, I have to design an application which has to display some graphics of maritime data. I am wondering whether it could be web application (ASP.NET) or standalone C# application.
2
by: JohnR | last post by:
Hi all. In my program I try to handle all obvious potential errors with structured error handling (try-catch) block. What I would like to do is have an 'overall' error handler that would...
7
by: tah | last post by:
Hey, Can someone please clarify, confirm, or set me straight on my understanding of a standalone="yes" attribute in the xml version element? I assume it means that the xml document containing it...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.