Tag: PHP


EAN 13 check digits with PHP

Calculate check digits for EAN13, 1function ean13_check_digit($digits) {2 //first change digits to a string so that we can access individual numbers3 $digits =(string)$digits;4 // 1\. Add the


Serendipity migrate to WordPress - Categories

我將個blog 由 serendipity migrate 到 Wordpress, 期間我寫 script 黎 migrate Category,因為發覺 Seredipity 同 WordPress 既 database design mindset 有d 唔同而喺 database design 亦常遇到類似既問題所以順便拎出黎講講。 Serendipity 喺處埋 categories 方