{"id":1089,"date":"2009-05-20T00:18:34","date_gmt":"2009-05-19T16:18:34","guid":{"rendered":"https:\/\/www.wopus.org\/blog-article\/technology\/1089.html"},"modified":"2009-05-20T00:18:34","modified_gmt":"2009-05-19T16:18:34","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8google-app-engine%e4%b8%8a%e8%bf%90%e8%a1%8cphp","status":"publish","type":"post","link":"https:\/\/wopus.org\/?p=1089","title":{"rendered":"\u5982\u4f55\u5728Google App Engine\u4e0a\u8fd0\u884cPHP"},"content":{"rendered":"<p>Google \u5728\u4e00\u5e74\u524d\u53d1\u5e03\u4e86<a href=\"http:\/\/code.google.com\/appengine\/\">Google App Engine<\/a>\u00a0(GAE)\u00a0\u3002\u8fd9\u662f\u4e00\u4e2a\u514d\u8d39\u7684 App Engine\u00a0\u4e3b\u673a\uff0c\u53ef\u4ee5\u8ba9\u4f60\u7684\u6bcf\u4e2aApplication\uff08\u514d\u8d39\u7684\u6700\u591a\u670910\u4e2a\uff09\u67091GB\u7684\u78c1\u76d8\u7a7a\u95f4\u548c43.6\u4e2aCPU\u5c0f\u65f6\u4e0e10GB\u7684\u4e0a\u4f20\u548c10GB\u7684\u4e0b\u8f7d\u5e26\u5bbd\uff0c\u4ee5\u53ca2000\u4e2a\u7535\u5b50\u90ae\u4ef6\u3002\u5982\u679c\u4f60\u9700\u8981\u5730\u66f4\u591a\uff0c\u90a3\u5c31\u662f\u4ed8\u94b1\u4e86\u3002<\/p>\n<p>GAE\u00a0\u6700\u8fd1\u53d1\u5e03\u4e86\u6b63\u5f0f<a href=\"http:\/\/googleappengine.blogspot.com\/2009\/04\/seriously-this-time-new-language-on-app.html\" target=\"_blank\">\u652f\u6301Java<\/a>\u7684\u901a\u77e5\u3002\u4e8e\u662f\uff0c\u4e92\u8054\u7f51\u4e0a\u5f00\u59cb\u6709\u4e86\u5404\u79cd\u5404\u6837\u7684BLOG\u8bc4\u8bba\u6587\u7ae0\uff0c\u8fd8\u6709\u4e00\u4e9b\u4eba\u5c45\u7136\u5728Google App Engine\u00a0\u4e2d\u8fd0\u884cPHP\u7a0b\u5e8f\uff0c\u8fd9\u4e2a\u592a\u4e0d\u53ef\u601d\u8bae\u4e86\u3002\u56e0\u4e3aGAE\u76ee\u524d\u5e76\u4e0d\u652f\u6301PHP\u3002<\/p>\n<p>\u5176\u5b9e\uff0c\u4ed6\u4eec\u4f7f\u7528\u4e86\u4e00\u4e2a\u53eb\u505a <a href=\"http:\/\/www.caucho.com\/resin-3.0\/quercus\/\">Quercus<\/a>\u7684\u4e1c\u4e1c\uff0c Quercus \u672c\u8d28\u4e0a\u662f\u4e00\u4e2a\u00a0100% \u7684\u7528Java \u5b9e\u73b0\u7684\u4e00\u4e2a PHP \u5f15\u64ce (\u9700\u8981 JDK 1.5)\uff0c\u6240\u4ee5\uff0c\u53ea\u8981\u4f60\u628aQuercus\u96c6\u6210\u5230\u4f60\u7684GAE\u4e2d\uff0c\u4f60\u81ea\u7136\u4e5f\u53ef\u4ee5\u8fd0\u884cPHP\u811a\u672c\u4e86\u3002<\/p>\n<p>\u00a0<\/p>\n<p>\u4e0b\u9762\u662f\u5927\u4f53\u6b65\u9aa4\uff1a<br \/>\n1\uff09\u6ce8\u5220\u4e00\u4e2a <a href=\"http:\/\/appengine.google.com\/\">\u514d\u8d39\u7684\u5e10\u53f7<\/a>\u3002<br \/>\n2) \u4e0b\u8f7d<a href=\"http:\/\/www.webdigi.co.uk\/fun\/php-appengine\/phpwithjava.zip\">\u8fd9\u4e2a\u6587\u4ef6<\/a> \u5230\u4f60\u672c\u673a\u3002<br \/>\n3) \u5728\u00a0warWEB-INFappengine-web.xml \u7f16\u8f91\u5e94\u7528\u7684XML tag\uff0c\u628a\u5176\u540d\u5b57\u6539\u6210\u4f60\u6240\u6ce8\u518c\u7684\u540d\u5b57\u3002<br \/>\n4) \u6700\u540e\uff0c<a href=\"http:\/\/code.google.com\/appengine\/docs\/java\/gettingstarted\/uploading.html\">\u4e0a\u4f20\u4f60\u7684\u5e94\u7528<\/a>\u3002<\/p>\n<p>\u66f4\u591a\u7ec6\u8282\u8bf7\u53c2\u770b\uff1a<\/p>\n<ul>\n<li><a href=\"http:\/\/phpwithjava.appspot.com\/webdigi.phphttp:\/\/phpwithjava.appspot.com\/info.php\">http:\/\/phpwithjava.appspot.com\/webdigi.php<\/a><\/li>\n<li><a href=\"http:\/\/phpwithjava.appspot.com\/info.php\">http:\/\/phpwithjava.appspot.com\/info.php<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Google \u5728\u4e00\u5e74\u524d\u53d1\u5e03\u4e86Google App Engine\u00a0(GAE)\u00a0\u3002\u8fd9\u662f\u4e00\u4e2a\u514d\u8d39\u7684 App Engine\u00a0\u4e3b\u673a\uff0c\u53ef\u4ee5\u8ba9\u4f60\u7684\u6bcf\u4e2aApplication\uff08\u514d\u8d39\u7684\u6700\u591a\u670910\u4e2a\uff09\u67091GB\u7684\u78c1\u76d8\u7a7a\u95f4\u548c43.6\u4e2aCPU\u5c0f\u65f6\u4e0e10GB\u7684\u4e0a\u4f20\u548c10GB\u7684\u4e0b\u8f7d\u5e26\u5bbd\uff0c\u4ee5\u53ca2000\u4e2a\u7535\u5b50\u90ae\u4ef6\u3002\u5982\u679c\u4f60\u9700\u8981\u5730\u66f4\u591a\uff0c\u90a3\u5c31\u662f\u4ed8\u94b1\u4e86\u3002 GAE\u00a0\u6700\u8fd1\u53d1\u5e03\u4e86\u6b63\u5f0f\u652f\u6301Java\u7684\u901a\u77e5\u3002\u4e8e\u662f\uff0c\u4e92\u8054\u7f51\u4e0a\u5f00\u59cb\u6709\u4e86\u5404\u79cd\u5404\u6837\u7684BLOG\u8bc4\u8bba\u6587\u7ae0\uff0c\u8fd8\u6709\u4e00\u4e9b\u4eba\u5c45\u7136\u5728Google App Engine\u00a0\u4e2d\u8fd0\u884cPHP\u7a0b\u5e8f\uff0c\u8fd9\u4e2a\u592a\u4e0d\u53ef\u601d\u8bae\u4e86\u3002\u56e0\u4e3aGAE\u76ee\u524d\u5e76\u4e0d\u652f\u6301PHP\u3002 \u5176\u5b9e\uff0c\u4ed6\u4eec\u4f7f\u7528\u4e86\u4e00\u4e2a\u53eb\u505a Quercus\u7684\u4e1c\u4e1c\uff0c Quercus \u672c\u8d28\u4e0a\u662f\u4e00\u4e2a\u00a0100% \u7684\u7528Java \u5b9e\u73b0\u7684\u4e00\u4e2a PHP \u5f15\u64ce (\u9700\u8981 JDK 1.5)\uff0c\u6240\u4ee5\uff0c\u53ea\u8981\u4f60\u628aQuercus\u96c6\u6210\u5230\u4f60\u7684GAE\u4e2d\uff0c\u4f60\u81ea\u7136\u4e5f\u53ef\u4ee5\u8fd0\u884cPHP\u811a\u672c\u4e86\u3002 \u00a0 \u4e0b\u9762\u662f\u5927\u4f53\u6b65\u9aa4\uff1a 1\uff09\u6ce8\u5220\u4e00\u4e2a \u514d\u8d39\u7684\u5e10\u53f7\u3002 2) \u4e0b\u8f7d\u8fd9\u4e2a\u6587\u4ef6 \u5230\u4f60\u672c\u673a\u3002 3) \u5728\u00a0warWEB-INFappengine-web.xml \u7f16\u8f91\u5e94\u7528\u7684XML tag\uff0c\u628a\u5176\u540d\u5b57\u6539\u6210\u4f60\u6240\u6ce8\u518c\u7684\u540d\u5b57\u3002 4) \u6700\u540e\uff0c\u4e0a\u4f20\u4f60\u7684\u5e94\u7528\u3002 \u66f4\u591a\u7ec6\u8282\u8bf7\u53c2\u770b\uff1a http:\/\/phpwithjava.appspot.com\/webdigi.php http:\/\/phpwithjava.appspot.com\/info.php<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[158],"class_list":["post-1089","post","type-post","status-publish","format-standard","hentry","category-technology","tag-google"],"_links":{"self":[{"href":"https:\/\/wopus.org\/index.php?rest_route=\/wp\/v2\/posts\/1089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wopus.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wopus.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wopus.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wopus.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1089"}],"version-history":[{"count":0,"href":"https:\/\/wopus.org\/index.php?rest_route=\/wp\/v2\/posts\/1089\/revisions"}],"wp:attachment":[{"href":"https:\/\/wopus.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wopus.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wopus.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}