views:

79

answers:

3

How can i run a PHP script on the Google App Engine?

I know that Java and Python are supported. Is PHP possible?

+3  A: 

The Google App Engine does not support php natively, even though it remains at the top of the wish list on the GAE issue tracker.

However, you should be able to run php scripts using a Java implementation of PHP, such as Quercus. You may want to check out the following article for further reading on the topic:

Daniel Vassallo
A: 

Kind of. There is Quercus which runs PHP - or parts of PHP - in Java, and thus also on GAE.

It seems however to be old (no updates since 2006), and it seems to be missing many functions. My impression: Meh. It may be possible to run some PHP code on GAE with this, but it's definitely not a stable, full-blown basis to run production software on.

More good background info: Is Quercus a viable replacement for PHP in Java environments?

Unicron
Quercus 4.0.3 was [released](http://quercus.caucho.com/) January 2010.
Matthew Flaschen
+1  A: 

You can just about using Quercus but it's not a full implementation last time I checked. It basically compiles your PHP down to Java and runs that through the Java Runtime.

My opinion: it's a hack. You'll probably find thing breaking and you'll probably have a really lousy experience with it.

But it might work for you so feel free to try it out.

Oli