views:

43

answers:

2

Is there anything I can use to have PHP execute in a self contained environment without having to install server software?

haven't learned other languages :-(

I wanted to write a simple php/XML webapp that can be used on a desktop machine with no admin rights. It's for daily data entry stuff myself and others have to do when certain tasks are completed. Its a work machine and security is super high so can't have the details traversing the internet to my hosting.

Any suggestions?

+3  A: 

XAMPP Portable might be what you are looking for. You don't need admin rights to run it.

http://portableapps.com/apps/development/xampp

HoLyVieR
cool, just had a read and sounds like this could work quite well. I'll give it a go tomorrow, thanks! I'll give you a preemptive tick :)
Taylor
A: 

Regardless of what language you use, in order to have a webapp, you need a web server of some sort, to listen to requests and send a response back (even if it's just listening to localhost). It is possible to run php from a command line without a server, but I don't know if you want to convert your application to a command line one.

Assuming you're using Windows, there are solutions for compiling PHP into an exe file (a quick google search found Phc-win, for example). However, I've never actually done this myself so this be sure to fully investigate what this would entail! You'd most definitely need to rewrite your views to use some way of creating actual dialogs in Windows (ie. WinBinder, or wbObjects).

(Of course, if you wanted to convert it to a desktop app the best solution is to actually use a language meant for desktop development, but if you only know PHP and don't want to spend the time learning something else, this could suffice, I guess.)

Daniel Vandersluis
what languages are good for desktop apps. I do want to learn but the meat sack in my head has only been exposed to HTML/CSS/PHP/MySQL
Taylor
http://stackoverflow.com/questions/2080490/web-developer-wants-to-learn-desktop-programming might answer that.
Daniel Vandersluis
Why the downvote?
Daniel Vandersluis