Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Feb 2006
    Posts
    138
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Using PHP to write an application...

    OK, so I need to write a windows application, except I know little to nothing about coding in VB, C#, etc... I do know PHP, and most other web languages fairly well, so I am trying to figure out if I can accomplish a similar functionality using PHP, flash, and some SQL...

    Here's what the project needs to accomplish:

    1. A one page display with 5 menu items on the left (looks just like a standard web page)
    2. Each of these sections will include menus which the user can choose media from (videos, flash files, etc.)
    3. Some of the functionality requires that data be stored and retrieved from a SQL DB for use.
    4. Each time a different menu item is clicked, a time stamp needs to be put into a SQL DB so I can track how much actual time was spent on each portion of the "presentation" after the fact.

    Here's what I'm thinking:

    1. A WAMP configuration so I can run PHP and MySQL on a local machine.
    2. A locked down, kiosk-style browser to give the appearance of a full screen windows app instead of a web app...
    3. The MySQL DB's will replicate on a daily basis to a central SQL server (on the same network)
    4. Some kind of javascript (or other) event handler (onclick) that makes a SQL entry every time a menu item is clicked, thereby tracking when the user switches between sections.


    Would someone tell me if this is a reasonable thing to try? I simply don't have the time to learn new syntax and coding logic at this point and I feel I have to go with what I know, in this case, PHP.

    Does anyone have any experience, good or bad, with trying to create a desktop app in this fashion.

  • #2
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Did you think about PHP-GTK?
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.

  • #3
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    OK, so I need to write a windows application, except I know little to nothing about coding in VB, C#
    C# is fairly easy to learn once you are familiar with a C style syntax language. Which PHP happens to be.

  • #4
    Regular Coder
    Join Date
    Feb 2006
    Posts
    138
    Thanks
    11
    Thanked 0 Times in 0 Posts
    I'm looking at that as well, but I'm not a greatly advanced PHP coder. What I'm essentially trying to do is take a very nice web page that I can easily write using PHP and HTML and turn it into a "desktop app"...

    More for the purposes of not having to count on a solid internet connection to make the app work. The resources all need to be local, but it is for all intents an purposes a web app...


    Anybody know anything about MioFactory?

  • #5
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    What about installing Apache and PHP and just running it as a website?

  • #6
    Regular Coder
    Join Date
    Feb 2006
    Posts
    138
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Well, that's kind of where I'm leaning with the WAMP configuration, but I'm trying to avoid a browser if possible.. I like the idea of writing everything as a web page and then cranking out an executable from that....

    Any suggestions on how to pull that off?

  • #7
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Seems like apples and oranges to me. Executable applications aren't limited by the dreaded HTTP request protocol (hense stateless pages) so you can do so much more.

    On the other hand, browsers and this got-danged innernet technology (as Hank Hill would say) has come such a long way, there are workarounds for most anything you want to accomplish.

    Kinda sounds like you want to turn an apple into an orange, which you can do by peeling the apple and gluing an orange peel on it, then removing the apple's insides and replacing them with the insides of an orange.

    Then again, someone's probably written something to do just that! This got-danged innernet technology is so ubiquitous, surely someone's gone through the trouble.

    I just don't see a good answer to "WHY".


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •