30th of December 2006, Iraq’s former President Saddam Hussein has been executed by hanging for the murder of 148 Shi’as in the town of Dujail in 1982 (of course he has killed more than this number).

Personally I think he’s deserved for punishment for the crime he committed, although hanging him is not a best punishment. But… What about George Bush?
-around 3000 US troops die for nothing in Iraq, and over 20,000 injured. (reference)
-over 50,000 of Iraqis died, most of them are innocent. (reference)
-billion dollars spent, not for education, not for scientific research, not for helping the poor in US, not for poverty around the World, but for killing people and get more votes.

Don’t you think he also deserves for punishment?
Here are the steps to run Java classes from PHP
- Get JDK installed at your server, you can download either Java SE or Java EE from Download side of Sun website. (download Java SE if you are new, while Java EE for enterprise projects)
- Make sure your PHP installation folder has ‘extensions’ folder in it, it’s not available if you installed your PHP with Windows installer. If you don’t have it, download the zip package, get the ‘extensions’ folder out of zip file and paste it into PHP folder.
- Now you need to modify the content in php.ini (mostly available in C:\Windows)
- search for ‘extension=php_java.dll’, uncomment it (by removing the semicolon (;))
- go to [java] section, add these lines (or replace the commented lines with these lines):
java.class.path = “c:\php\extensions\php_java.jar; C:\Program Files\Java\jdk1.6.0\bin; C:\Program Files\Java\jdk1.6.0\jre\lib”
java.home = “C:\Program Files\Java\jdk1.6.0; C:\Program Files\Java\jdk1.6.0\jre\lib”
java.library = C:\Program Files\Java\jdk1.6.0\jre\bin\server\jvm.dll
java.library.path = “c:\php\extensions\; C:\Program Files\Java\jdk1.6.0\jre\lib”
- Save your php.ini, restart your web server.
- Now create a PHP file, with the following code:
$system = new Java(‘java.lang.System’);
echo ‘Java version installed = ‘ . $system->getProperty(‘java.version’) . “<br />”;
echo ‘Java vendor = ‘ . $system->getProperty(‘java.vendor’) . “<br />”;
echo ‘Running on server = ‘ . $system->getProperty(‘os.name’) . “<br />”;
- Try to run the PHP script in your browser to test the connectivity.

However now I still could not have the PHP call my own custom Java class, will update in near future when I got it run
Reference: http://www.php.net/java
My environment: Windows XP with IIS, PHP 4.1.4, JDK 1.6.0
Merry Christmas everybody! 

Once again my company Exact ADC having Christmas gift exchange to celebrate Christmas. 2 weeks ago, each of us drew a name then bought a gift to the person that we’ve selected, then placed the gift under the Christmas tree at our reception area.

So the gift exchange was took place at 22nd December, before started, my department was gathered to take a photo with the gifts under the Christmas tree.

After that, all staffs from 34th floor gathered at reception area, our director Mr. Ronald Voet gave a short speech and distributed the gift.

I’ve received an egg-shaped digital clock, kinda cute and useful, thanks… to who have given me this, I don’t know who are you., but thanks! 

24th Dec 2006 – Alex Kong & Lilian Teo (website)
1st Jan 2007 – Desmond Wong
27th Jan 2007 – Alex Wong
Congratulations!
Recent Comments