Loading...

resin将支持php,将php编译执行

2007-01-26 16:52:14 发表于PHP, 网站技术 本文链接: resin将支持php,将php编译执行

一直期待php可以编译的执行,或者可以以servlet的形式执行,其实就是类似Fast-cgi那样,请求只生成新的线程而不是folk新的进程。

JSON (JavaScript Object Notation) is a popular text data exchange format with built-in support from Quercus since Resin 3.0.20. One of the common uses of JSON in a PHP environment is for the server to send JSON data to the user’s browser.

1. Overview
1. PHP Users
2. Java Users
3. New Java/PHP Architecture

Overview

Implementing PHP in Java brings benefits to both PHP users and pure Java users. And developers who are clever enough to use PHP in combination with Java will gain the most.
在java中执行php将会给php和纯java用户带来好处,特别是那些将java和php混合使用的用户将会从这样的模式中得到更到的好处

PHP Users

PHP developers will gain from using Quercus, even if they have no intention of writing Java code. Because Quercus is written for Resin, a Java application server, it gains all the advantages of Java applications including:

Quercus非常有利于php开发者,即使他们不打算编写java代码,因为Quercus是为resin(java应用服务器)而设计,因此,他继承了java的所有优点

  1. Security: since Quercus and its modules are entirely in Java, C pointer overruns and segmentation violations are no longer possible.
    安全性:因为Quercus和其模块均全部采用java编写。所以没有C语言中会出现的指针和寄存器冲突的问题
  2. Scalability: PHP programs can take advantage of distributed sessions in PHP and load balancing.
    伸缩性:PHP程序可以得到分布式session的优点和负载均衡的特性
  3. Performance: Quercus outperforms a straight mod_php implementation by about 4x (for Mediawiki and Drupal). Quercus roughly matches PHP performance with accelerators like APC.
    Quercus直接以mod_php的模式运行,能够或得4倍的执行效率(对于Mediawiki 和 Drupal来说,即以它们为例),Quercus对于php的执行机制几乎和加速器如APC一样。
  4. Caching: PHP applications using Quercus can immediately take advantage of Resin’s proxy caching. They can also use the PHP APC caching API since the APC functions are included with Quercus.
    缓存:基于Quercus的PHP应用程序可以用于resin的proxy caching功能。同样,如果服务器环境配置了APC,也可以采用APC加速功能
  5. Connection pooling, transactions, JMS: PHP programs using Quercus automatically take advantage of Resin’s connection pooling, and can use the full distributation transactions, and Java capabilities like JMS.
    连接池,事务处理:基于Quercus的PHP应用程序可以自动使用resin的连接池功能,也能用于分布式事务处理,如同JMS。
  6. Java tools: PHP developers can use Java tools like profilers to get in-depth information about the PHP program performance.
    Java工具:PHP开发者可以使用类似profiler的java工具来测试php程序的运行效果

随便翻翻,请你随便看看,全部原文:http://www.caucho.com/resin-3.0/quercus/index.xtp

该日志未加标签
发表于 2007-01-26 16:52:14 目录:PHP, 网站技术 [RSS 2.0] 您可以评论. Pinging 不可用.
  • 相关阅读
  • homezz 美国专业主机商
    大师,指导指导如何? 拒绝低俗
      还没有留言呢,等你发表高见,快抢沙发啊!
    评论分页: 1
    (Required)
    (Required, not published)
    如果留言未显示无需重复留言,我将为你恢复!