0
Java implementation of the PHP language                 Author: Bui Dinh Ngoc                            Aiti-aptech
Whats Quercus Quercus 100% Java implementation of PHP PHP run on JVM (not Zend Engine) Opensource GPL license
Why?● Performance  – Up to 4x faster on some applications● Security  – Avoids buffer overflow problems in C-basedimplement...
Why?                                   (continue)● PHP on Google App Engine  – Google cloud computing● Long Live Process (...
Existing PHP applications onQuercus Mediawiki      Gallery2 Wordpress      Php-Nuke DokuWiki       PhpMyAdmin Drupa...
PHP+JAVA
Working with Java classes in PHP <?php  $a = new Java("java.util.Date", 123);   echo $a->time; ?> OR <?php import java.uti...
PHP Module Standard modules Quercus implements the standard PHP libraries (arrays, strings, date, regexp, zip ,zlib mcryp...
PHP Ext Module APC (object caching) Image support (gd) PDF generation (PDFlib api) AJAX (JSON) GetText (localization)
Using Databases (PHP API) MySQL PostgreSQL Oracle
Java Module         All, of course !!!
Benefits of Quercus Performance - simply faster Development - fast, safe, and easy Capability - powerful Java technolog...
Demo<?php        $a=time();        $arr = array();        for($i=0;$i<10000000;$i++)        {             $arr[i] = $i;   ...
Drupal performance stats
Thank you
Upcoming SlideShare
Loading in...5
×

PHP Day 2011 Quercus – PHP in JAVA

1,245

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,245
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
25
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "PHP Day 2011 Quercus – PHP in JAVA"

  1. 1. Java implementation of the PHP language Author: Bui Dinh Ngoc Aiti-aptech
  2. 2. Whats Quercus Quercus 100% Java implementation of PHP PHP run on JVM (not Zend Engine) Opensource GPL license
  3. 3. Why?● Performance – Up to 4x faster on some applications● Security – Avoids buffer overflow problems in C-basedimplementation● Java/PHP integration – PHP can now access any Java library or objects – Java can use PHP as a view technology
  4. 4. Why? (continue)● PHP on Google App Engine – Google cloud computing● Long Live Process (worker) – Php process ~ 82 live hours - Java process ∞ live hours● Delicate Cache vs Cache on process
  5. 5. Existing PHP applications onQuercus Mediawiki  Gallery2 Wordpress  Php-Nuke DokuWiki  PhpMyAdmin Drupal  Openads
  6. 6. PHP+JAVA
  7. 7. Working with Java classes in PHP <?php $a = new Java("java.util.Date", 123); echo $a->time; ?> OR <?php import java.util.Date; $a = new Date(123); echo $a->time; ?>
  8. 8. PHP Module Standard modules Quercus implements the standard PHP libraries (arrays, strings, date, regexp, zip ,zlib mcrypt, bcmath.
  9. 9. PHP Ext Module APC (object caching) Image support (gd) PDF generation (PDFlib api) AJAX (JSON) GetText (localization)
  10. 10. Using Databases (PHP API) MySQL PostgreSQL Oracle
  11. 11. Java Module All, of course !!!
  12. 12. Benefits of Quercus Performance - simply faster Development - fast, safe, and easy Capability - powerful Java technologies Security - no more pesky C memory bugs Scalability - Massive clusters of PHP Internationalization - 16-bit unicode
  13. 13. Demo<?php $a=time(); $arr = array(); for($i=0;$i<10000000;$i++) { $arr[i] = $i; } sort($arr); $b=time(); echo $b-$a;?> ====> Time Processing http://quercusdemo.appspot.com/ ====> 8s http://222.255.28.33:8888/index.php ====> 5s http://o2tv.vn/quercus.php ===> 15s
  14. 14. Drupal performance stats
  15. 15. Thank you
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×