Google recently expanded their app engine service to allow java in addition to python. No php or ruby support yet. Choosing java opens the door for both.
Quercus is a pure java implementation of php and it allows us to run php code in app engine. Some really smart people figured out how to make it work. Check out brian and webdigi.
Using their pre-configured environments its actually pretty easy. Brian even figured out how to start saving stuff into the app engine data store. Good stuff.
If your interesting in playing with this, here are some links you’ll need in addition to the ones provided by Brian and friends:
Google’s docs for app engine data connector -Explains how jdo works. I’m a php guy, not a java guy. Using Brian’s example on how to write to and the docs found here, you should be able to get started reading and writing to your accounts datastore.
App engine SDK – Get the eclipse plug-in. Its got a local development server included so you can test your apps before sending them up to google. It also has a push button upload. The module can also co-exist with Zend’s PDT plug-in.
NOTE: When starting the development server, you may get an error from java the first couple of times the page loads. Just reload the page a couple of times and the error will go away.
2 responses to “PHP in Google App Engine”
The latest version of resin includes support for google app engine.
Create a google app in eclipse
Add the resin.jar as instructed to the WEB-INF/lib directory
Update the WEB-INF/web.xml as instructed.
Put a php file in your projects war directory.
Using this version I no longer get exceptions at startup!!!
That is really interesting. I hope you can take a look to my distribution of PHP on Google package: http://php-apps.appspot.com/
It should make it very easy to conquer Google clouds with the most common web scripting language.