PHP Desktop Application

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

PHP Desktop Application

Post by tecktalkcm0391 »

I wanted to see if you could do this... install PHP and apache to a home computer, and set apache to be at "book" instead of "localhost" or something like that. Were it was only accessable on the ONE computer. Then I am going to use PHP/ajax/Javascript/HTML/Flash and Adobe AIR to combine to create a "desktop application"... how does that sound? Possible?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

have you considered XULruner? It's got SQLite, etc... You'd be writing the core code in javascript, but all your layouts could still be in xhtml, with added XUL if you feel like it.

Check it out
SwizzCodes
Forum Newbie
Posts: 20
Joined: Tue Dec 19, 2006 3:23 pm

Post by SwizzCodes »

try AIR from Adobe, it's much easier to use then XULRunner (which seems like a dead project to me) and the community is growing fast!

You can use an SQLite Database, too. Lots of more features and they're all consistent on Pc and Mac. And you don't need a webserver.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Incidentally, you don't need a framework installed for XULrunner apps to work, which I see as a downside to AIR.

AIR reeks of Flash to me. Anyone else?

SwissCodes makes an excellent point that XULrunner has been rather relaxed (stagnant?) as a community, but it's essentially just Firefox minus the UI/layouts. As such, the codebase will be updated as long as Firefox exists.

I guess it really boils down to whatever your project requires in the end.
User avatar
Stryks
Forum Regular
Posts: 746
Joined: Wed Jan 14, 2004 5:06 pm

Post by Stryks »

Sorry... old thread I know, but have you taken a look at phpDock by Nusphere??

SQLite support as well.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

NameVirtualHost. Set this up in Apache on your machine so that all calls that normally go to localhost get sent to 'INSERTNEWLOCALHOSTNAMEHERE'. Then edit your hosts file and change 'localhost' to whatever you want it to be.
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

Thanks!!!!

One more question... how can I do this part... I don't want the users to have to upload and download files to a central website because of security issues, which I'd rather not deal with... What I want to do is make it so there are "user computers" and a "master computer"... the "master computer" get something installed on it (This is what I need help figuring out) [Apache? SQLite? PHP? MySQL?] in order for that computer to act like the host.

The user computers would connect to the master via a specfic address like http://theprogramname/ (kinda like localhost, execpt where anyone on the network can access it) and then i'd look like a regular old website, with PHP and a database.
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

How can you make your own Apache/PHP/MySQL Package?
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Re: PHP Desktop Application

Post by tecktalkcm0391 »

I hate to open this up again, but I am still having problems. How can I setup apache so that I have an intranet like server where i can access it from http://intranetservice or something similar from any computer on the network.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: PHP Desktop Application

Post by RobertGonzalez »

If your computer is recognized on the network, as long as your computer is on, you can hit your computer name and it resolve to your base server on your machine.

I did that with my computer at work. I made a virtual host in my httpd.conf though, but it is just as easy.

As I was developing the WWW stuff I was working on anyone in the company could see my progress by hitting http://mycomputername.companydomain.com
Last edited by RobertGonzalez on Fri Mar 21, 2008 10:25 am, edited 1 time in total.
Reason: Misspellings abound
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Re: PHP Desktop Application

Post by tecktalkcm0391 »

So pretty much just set the virtual host up to like theNameIWant, then go into a browser and type http://theIPAddress and it will forward over... i'll try it later... thanks!
Post Reply