I try to create a table in a Joomla content page but i find that the text will expand the table if it is too long.
Continue reading HTML – Wrap Text in Table Cell
Maven – Using AntInstaller in Maven
You have to specific the plugin dependency in the pom.xml if u want to use the installer task of AntInstaller in Maven.
Continue reading Maven – Using AntInstaller in Maven
AntInstaller – Build a Self-Extract Installer
AntInstaller is a useful tools for building a self-extract installer which is able to collect user input and run specific Ant targets from a build.xml file.
Continue reading AntInstaller – Build a Self-Extract Installer
高潔的精神 – 專訪高耀潔醫生@頭條新聞 2010年2月20日
高潔的精神(上) – 專訪高耀潔醫生@頭條新聞2010年2月20日
高潔的精神(下) – 專訪高耀潔醫生@頭條新聞2010年2月20日
PHP – Generate A Random String
The following piece of code could generate a random string with a specified length.
Continue reading PHP – Generate A Random String
Javascript – HTML Form Submission
Submitting a HTML form in Javascript can be done by just one line.
Continue reading Javascript – HTML Form Submission
Ajax – Simple Ajax POST Request
Ajax is very popular in websites nowadays. You can make a simple Ajax POST Request with only 2 files as shown as below.
Continue reading Ajax – Simple Ajax POST Request
名言九
Happiness depends upon ourselves.
Aristotle/Aristotélēs
PayPal – Payment Data Transfer Sample Code
Update @ 2016-01-25: The following sample code may be outdated. please try the new sample code from paypal as stated in this comment.
PayPal Payment Data Transfer (PDT) provides a simple way for gathering the PayPal transaction details after the payment. You can even make use of it to trigger any post-transaction action. This article guide you how to test your PDT flow in PayPal Sandbox
Continue reading PayPal – Payment Data Transfer Sample Code
PHP – Send Attachment with PHP mail()
Update @ 2014-03-10: If the following piece of code doesn’t work, you could try the comment written by karmaprod.
Update @ 2014-01-17: You may need to change the PHP_EOL setting in Windows environment as suggested by Rene.
Update @ 2015-02-13: Replace all “/r/n” to PHP_EOL as suggested by Rene and Tomas for windows environment and sending image attachment.
By default, the PHP mail() does not support sending email with attachment. In order to send an attachment, u can either use the PEAR package or PHPMailer. But in reality, the hosting server may not provide these kinds of third party libraries.
Continue reading PHP – Send Attachment with PHP mail()