Page 1 of 1

Online Sandbox

Posted: Tue Oct 09, 2007 7:52 am
by Skyhigh
Ok, so not exactly object mocking, unit testing or similar....but...

Does anyone know of an online PHP sandbox or compiler, whereby I can enter the php code in one area/box, and it runs in another area (or window).

Why?
Well I'd like to test some php idea's while on my lunch break, but we've not got access to external FTP, so I can't FTP the php to my server, nor can we have apache/php installed on our development machines [its all strict .NET].

So I'm looking for somewhere to test run some PHP online.

I've Googled for a while with many different terms:
php sandbox, php online sandbox, php online compiler, php online testing, php test sandbox, etc, etc, etc
with no luck.
[I actually found one page that offered what I was looking for, but it has since moved....and removed the online php sandbox from the site]


Thanks,


:!:

Posted: Tue Oct 09, 2007 7:55 am
by John Cartwright
None that I know of. I remember a user a posted a link to his sandbox a couple months back and it took only a few hours before his site was vandalized (to demonstrate the security vulnerability of having a public sandbox)

Posted: Tue Oct 09, 2007 9:04 am
by jamiel
The Zend Debugger and it's integration into the IDE offers similar features to what you are looking for.

Posted: Tue Oct 09, 2007 5:43 pm
by Ambush Commander
Using MicroApache, you can set up a portable LAMP setup that doesn't require any installation and can be turned on and off as necessary. PortableApps also has something similar.

Posted: Tue Oct 09, 2007 6:40 pm
by wei
How about using VMWare, there are plenty of existing PHP installation images available. E.g., one that I made earlier http://xlab6.com/prado-php5-vmware-image/

Posted: Tue Oct 09, 2007 11:46 pm
by Kieran Huggins
Uniform Server requires no installation, it just unzips and runs. I use it all the time to develop locally. Comes with everything you need.

http://www.uniformserver.com

Posted: Wed Oct 10, 2007 1:41 am
by matthijs
Didn't know uniformserver. Here's one I have used
webserver on a stick
http://www.chsoftware.net/en/useware/wos/wos.htm

Just take your lamp with you on a usb stick, perfect also for presentations (as a backup plan in case there's no internet and you need to show a website/webapp)

Posted: Wed Oct 10, 2007 5:19 am
by Skyhigh
Wow, a huge amount of variations, thanks for the responses guys.

I did consider the securiy issues with an online public PHP sandbox and can see why it would be a problem (plus prone not only to user mistakes, but as previously highlighted, attacks/vandalism).

Time to try a few out :)


:!:

Posted: Wed Oct 10, 2007 7:46 am
by Chris Corbyn
You can download web page-based FTP clients and upload/download managers to manage files on your own hosting account simply through a web page. I used to do this when I worked at EDS before I figured out how to install PHP, MySQL and Apache to run off a USB drive ;)

Posted: Wed Oct 10, 2007 5:59 pm
by Ollie Saunders
Kieran Huggins wrote:Uniform Server requires no installation, it just unzips and runs. I use it all the time to develop locally. Comes with everything you need.

http://www.uniformserver.com
Wow this looks cool. Shame about the website though, if I had stumbled across this I would have left before realising what it did.

Posted: Wed Oct 10, 2007 9:55 pm
by Kieran Huggins
You should have seen the old website.. it looked like it had been written in word '97 by a blind hobo!