Browsing articles from "12 月, 2014"
iOS 8使用Cydia時,有時候會遇到跳出APP_STORE_REDIRECT的警告視窗,google之後,發現是BigBoss這個源的問題。
使用iFile開啟/etc/hosts這個檔案,然後將下面的內容貼上保存後就可以解決這個問題。
127.0.0.1 a.adorika.net
127.0.0.1 a.ad-sys.com
127.0.0.1 ads.glispa.com
127.0.0.1 c.gltrkk.net
127.0.0.1 hastrk3.com
驗證VAT號碼是否有效的簡易小程式
function checkVAT($vatNumber) {
$_vatCountry = strtoupper(substr($vatNumber, 0, 2));
$_vatNumber = substr($vatNumber, 2);
$client = new SoapClient("http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl");
$checkRes = $client->checkVat(array(
'countryCode' => $_vatCountry,
'vatNumber' => $_vatNumber
));
return $checkRes;
}