SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Crossplatform desktop PHP ?

    Hello & Thanks ,
    Is there such a thing as "Crossplatform desktop PHP" ?
    Normally I program in HotBasic (freeware programs) .
    But I am interested in crossplatform .
    So it seems like javascript/html/php are quite platform independent .
    Today I noticed a Php-Gtk crossplatform opensource package .
    I would like to write programs that run in Browsers (IE , chrome , firefox , etc.) .
    So I am looking for the smallest Desktop footprint possible ,
    to develop php/html/javascript programs .
    And more importantly ,
    I am looking for the smallest Desktop footprint possible ,
    to run these programs in .

    Any advice/direction you can give me will be greatly appreciated .

    Thanks...Vernon

  2. #2
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    73 Post(s)
    Tagged
    0 Thread(s)
    PHP is a Server Side language, and so has not relation to your client browser/OS. It does all of it's processing before anything gets sent to the browser.
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  3. #3
    SitePoint Guru bronze trophy
    Join Date
    Dec 2003
    Location
    Poland
    Posts
    930
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vmars316 View Post
    Hello & Thanks ,
    I would like to write programs that run in Browsers (IE , chrome , firefox , etc.) .
    So I am looking for the smallest Desktop footprint possible ,
    In order to run a php program in a browser you first need to set up a web server because browsers can only run what they can fetch from a server, they don't understand php so the server has do to all the php work. If that is supposed to be a desktop application then you would need to first install a local web server on the machine and that defeats your goal of smallest footprint possible and complicates installation procedure for users.

    On other words - php is not the right tool for your job. And why would you want your program to run in a web browser if it's supposed to be a desktop program? There are other languages much better suited to be run on the desktop and there are solutions to compile the same code for different platforms.

  4. #4
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes , I know about LocalStorage/html5 and xampp local server .
    xamppLite is 400mb .
    I have't yet looked at Flash .
    Thanks...vm

  5. #5
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,250
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)
    If you were talking cross-platform desktop apps I'd suggest looking at Java.

    But you say "run in browser" which makes me think you're wanting to write a web app to run on the desktop.

    If it's simple you could write HTML/Javascript files for people to download to their machines and they would open in their browsers.
    Their are database options that might work in this set-up, but AFAIK they aren't cross-platform.

    If you need/want to have access to their system then probably "outside of a browser" would be better.

  6. #6
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello & Thanks ,
    Mittineague : I just discovered that in FireFox has a Tools called ScratchPad ,
    where I can open a txt/js/? files and edit/save/saveas them .
    Chrome may have something similar I'll check it out .
    ...vm


Bookmarks

Posting Permissions

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