Explore

Loading

Thursday, December 20, 2012

Using the PHP/Java Bridge to Combine PHP and Java in the Same App


As you probably know, PHP 4 supported an extension for combining PHP with Java, but to combine PHP with Java in PHP 5 or PHP 6 you should install the PHP/Java Bridge, which the website describes as:
"... an implementation of a streaming, XML-based network protocol, which can be used to connect a native script engine, for example PHP, Scheme or Python, with a Java virtual machine."
In this article you will learn how to install and configure the PHP/Java Bridge and how to use Java classes in PHP scripts in a demo application. To use the PHP/Java bridge, you should have knowledge of Java SE and the PHP5 core, as well as how they interact.

Using the PHP/Java Bridge

The current distribution of the PHP/Java Bridge is available for download as a .zip file from the project page. The installation process depends on which Java platform will be interacting with PHP through this bridge. For J2SE, installation is simple:
  1. Install J2SE 1.6 or above.
  2. Install PHP 5.1.4 or above.
  3. Extract the php-java-bridge_5.2.2_j2ee.zip to a folder.
  4. From the command prompt, navigate to this folder and type: …>java –classpath JavaBridge.war TestInstallation
  5. In the current folder, you should see an ext folder that contains four .jar files. Copy JavaBridge.jar and php-script.jar to your J2SE/Java SE ext directory ({JAVA_HOME}/jre/lib/ext).

Japanese toilet answers nature's call via Android

Japanese bathrooms are about to become a little more interactive, thanks to a new smartphone-controlled toilet known as the Satis. Manufactured by Tokyo-based Lixil, this Bluetooth-enabled commode can be controlled with an Android app called "My Satis," allowing users to flush, raise the toilet seat, and activate a bidet jet stream with the touch of a button. The app also lets you stream music through the toilet's speakers and will automatically monitor "usage history," giving you a better idea of how much electricity and water you're consuming with each visit.

Complete Story

Mozilla Firefox 20 Will Speed Up Page Load Times


Firefox 20 is sure shaping up to be a really big release for Mozilla. We already knew that it would finally be the release that provides Private Browsing as it should be. Now it looks like Firefox is finally getting a really interesting Network load fix that seems obvious and sure could make a huge performance difference.
Firefox 20 will load stylesheets before images.

Read More:http://www.internetnews.com/blog/skerner/mozilla-firefox-20-will-speed-up-page-load-times.html

HTML5 Still Not a Standard Until 2014


The W3C announced  that the HTML5 definition is now complete. This is a big deal for the web and all of us that work and use it…but it's not end of the story.

The definition is not a final standard for HTML5, though it is an important milestone. HTML5 will not likely be a full bona-fide standard until mid 2014 according to what Jeff Jaffe told me during a conference call  to talk about HTML5.

Credits:http://www.linuxtoday.com/developer/html5-still-not-a-standard-until-2014.html