Standalone WIN32 application in PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michiel Overtoom

    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.

  • Chris Hope

    #2
    Re: Standalone WIN32 application in PHP

    Michiel Overtoom wrote:
    [color=blue]
    > 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...,[/color]

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

    Chris

    --
    Chris Hope
    The Electric Toolbox Ltd

    Comment

    • Henk Verhoeven

      #3
      Re: Standalone WIN32 application in PHP

      Chris Hope wrote:[color=blue]
      > Michiel Overtoom wrote:
      >
      >[color=green]
      >>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...,[/color]
      >
      >
      > Check out http://gtk.php.net/
      >
      > Chris
      >[/color]

      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.

      Comment

      • Noah from IT Goes Click

        #4
        Re: Standalone WIN32 application in PHP

        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.

        Comment

        • Hi Ho

          #5
          Re: Standalone WIN32 application in PHP

          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:4083fb2c.1 6086156@news.xs 4all.nl...[color=blue]
          > 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.
          >[/color]


          Comment

          • Michiel Overtoom

            #6
            Re: Standalone WIN32 application in PHP

            Noah from IT Goes Click <newsuser@itgoe sclick.com> wrote:
            [color=blue]
            > 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.[/color]

            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.

            Comment

            • Michiel Overtoom

              #7
              Re: Standalone WIN32 application in PHP

              Chris Hope <blackhole@elec trictoolbox.com > wrote:
              [color=blue]
              > Michiel Overtoom wrote:
              >[color=green]
              > > 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...,[/color]
              >
              > Check out http://gtk.php.net/
              >
              > Chris[/color]

              That is a good tip, thanks alot!


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

              Comment

              • Lothar Scholz

                #8
                Re: Standalone WIN32 application in PHP

                > No I think this is not possible.[color=blue]
                > PHP was meant to be an interpreted scripting language and even GTK is used
                > somehow but for Windows, it is not possible.[/color]

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

                Comment

                • Lothar Scholz

                  #9
                  Re: Standalone WIN32 application in PHP

                  Henk Verhoeven <news@phppeanut sREMOVE-THIS.org> wrote in message news:<c61mkd$b1 c$1@news5.tilbu 1.nb.home.nl>.. .[color=blue]
                  >
                  > I heard there is the limitation of php never collecting garbage until
                  > the application is shut down, or is this solved with php5?
                  >[/color]

                  AFAIK yes (gc problem) and no (not solved).

                  Comment

                  • Chung Leong

                    #10
                    Re: Standalone WIN32 application in PHP

                    "Lothar Scholz" <llothar@web.de > wrote in message
                    news:6ee58e07.0 404201357.35fb4 f5@posting.goog le.com...[color=blue][color=green]
                    > > No I think this is not possible.
                    > > PHP was meant to be an interpreted scripting language and even GTK is[/color][/color]
                    used[color=blue][color=green]
                    > > somehow but for Windows, it is not possible.[/color]
                    >
                    > It is, but maybe not comfortable. GTK runs on Windows too.[/color]

                    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++.


                    Comment

                    • Lothar Scholz

                      #11
                      Re: Standalone WIN32 application in PHP

                      "Chung Leong" <chernyshevsky@ hotmail.com> wrote in message news:<CJqdnWZxI 9FPWxjdRVn-uA@comcast.com> ...
                      [color=blue]
                      > 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).[/color]

                      Isn't the normal way to execute short chunks of code in Idle/Timer
                      handlers ?
                      [color=blue]
                      > 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++.[/color]

                      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.

                      Comment

                      • Chung Leong

                        #12
                        Re: Standalone WIN32 application in PHP

                        "Lothar Scholz" <llothar@web.de > wrote in message
                        news:6ee58e07.0 404211214.11504 da4@posting.goo gle.com...[color=blue]
                        >
                        > Isn't the normal way to execute short chunks of code in Idle/Timer
                        > handlers ?
                        >[/color]

                        True enough, but that's rather hard to structure.


                        Comment

                        Working...