admin
2010.04.07
Php, Python, 技术文档
Google launched their?Google App Engine (GAE) a year ago. The free hosting in App Engine?is allocated 500 MB of persistent storage and enough CPU and bandwidth for about 5 million page views a month. Also, if you really want more you can see pricing plans.
GAE will support Java going forward. Unfortunately?PHP support on the App Engine is still left as the top item in the wishlist. So until Google announces their official PHP support we have a workaround to run PHP using Quercus. Quercus is basically a?100% Java implementation of the PHP language (requires JDK 1.5). ?Since the App Engine now supports Java this means we can use Quercus to run PHP scripts on the App Engine.
So all you need to use the GAE and run PHP
1) Register a free account.
2) Download this file to your computer.
3) Edit application XML tag in the file?war\WEB-INF\appengine-web.xml to the name of the application you have registered.
4) Finally upload your application. I downloaded?Google App Engine SDK for Java and?use the following command in windows.
appcfg.cmd update C:\projects\phpwithjava\war
继续阅读 »
admin
2010.04.07
Php, Python, 技术文档





Ever since Google App Engine (GAE) supported Java, it has opened a slew of other languages that GAE indirectly and unofficially supports. PHP is one of them through Quercus, our 100% Java clean-room implementation of the PHP language.
PHP is unique among the other languages in that there are plenty of high-quality, killer applications (i.e. WordPress, Mediawiki, and Drupal) that are free and readily available for it. Furthermore, there has been incessant calls for Google to support PHP from the very beginnings of GAE.
Unfortunately, GAE doesn’t support MySQL, or any other relational database for that matter. We’re limited to Google Datastore, which is pretty much a big hash table. So running existing PHP applications unmodified on GAE is currently out of the question because they are so dependent on the LAMP architecture.
继续阅读 »
似乎性能优化永远都是属于门户网站的事儿,与咱们小民无关?!
这种想法在网络技术高速发展的今天,似乎有点落伍了。如果你是专业从事互联网的技术人员,甚至是负责优化公司网站的专家,自己的小站也别忘记适当地优化一下,
好像只有雅虎的人平时谈论这个问题比较多,是因为雅虎发明了YSlow和一套检验网站性能的机制?如果你使用的是Firefox,可以安装YSlow,来查看自己网站的性能,根据提示进行优化.总结一下,作为个站,可以做的优化工作大概这么几个:
- 使用更少的HTTP请求;
- 使用CDN
- 把CSS放在页面顶部(放<head>里)
- 把JS放在页面底部(紧跟着放</body>前就行) 继续阅读 »
近期评论