Google App Engine上运行PHP的方法

2010年1月21日 发表评论 阅读评论

           Google App Engine提供的免费应用引擎,已经被越来越多的人使用,但目前只支持Python和Java,更多的用户都希望GAE能支持PHP。

          在google正式支持PHP之前,我们可以通过折中的方案来运行PHP:Quercus

          Quercus可以说是100%的在Java上执行PHP语言的工具(需要的JDK 1.5 )。由于Google AppEngine现在支持Java,这意味着我们可以通过Quercus来运行PHP脚本。

          Quercus是Caucho公司采用纯Java开发的一个PHP5引擎,基于开源授权协议GPL发布。Quercus自带很多个PHP模块和扩展如PDF,PDO,MySQL和JSON。可以利用这个引擎在一些JavaEE应用容器(Resin,GlassFish等)中运行PHP程序,也可以在PHP脚本中调用一些Java服务如JMS。Quercus会预先把PHP文件编译成.java文件,然后再执行。

         而在使用的Google App Engine运行PHP前需要
         1)注册一个免费帐户。
         2)下载此文件到您的计算机。 
         3)以您已经注册的应用程序的名称来修改XML文件中的warWEB-INFappengine-web.xml。
         4)最后上传您的申请。我下载了Google App Engine SDK for Java,并使用下面的命令使其在Windows上运行。

                   appcfg.cmd update C:projectsphpwithjavawar

原创文章,转载请注明: 转载自水星博客 - 数字时代 To digi

本文永久链接地址: http://www.todigi.com/2010/01/google-app-engine-php.html

  1. 2010年11月9日03:54 | #1

    prolonged almanac you accept

  2. 2010年11月15日09:04 | #2

    Thought I would comment and say superb theme, did you design it for yourself? It’s really awesome!

  3. 2010年11月15日11:27 | #3

    Me too, ty for sharing this..

  4. 2010年11月15日12:03 | #4

    Keep it up, wonderful job! This was the thing I had to have.

  5. 2010年11月15日12:25 | #5

    Thanks for the useful info! I would not have found this by myself!

  6. 2010年11月15日15:34 | #6

    I just added this feed to my favorites. I really like reading your posts. Thank you!

  7. 2010年11月15日16:27 | #7

    I’m having a tiny problem I can’t seem to be able to subscribe your feed, I’m using google reader by the way.

  1. 本文目前尚无任何 trackbacks 和 pingbacks.