php: Zelan jakin textue utf-8 badauen?

Eskerrak geure psicologo programadorieri: http://php.apsique.com/node/536 Neure kasuen bakarrik biher dot ia utf-8 badan, orduen ba kodigo zati bat bakarrik hartun got: function is_utf8($text) { $result = false; for($i=0; $i<strlen($text); $i++) { $byte = ord($text[$i]); if ($byte & 0x80) $result = true; } return $result; }

Karactere berezidxek XML baten gorde UTF-8 encoding-egaz

Oingutan pasa dast karaktere berezidxek HTML hexadezimal formatora: &xYY; pasatie eta ezta nahikue entza new DOMDocument(‘1.0’, ‘utf-8’); eitzie Derrigorrezkue da encoding-e loadXML eta gero eitzie ;) $dom = new DOMDocument(‘1.0’, ‘utf-8’); $dom->loadXML($data); $dom->encoding = ‘utf-8’; header(‘Content-type: text/html; charset=utf-8’); echo $dom->saveXML();

identi.ca -gaz SSL arazuek choqok, gwibber etc

Bueno ba gaur arazuek okin’juz choqok edota gwibber programak martxan imintzeko identi.ca -gaz, soluziƱue? Ez ezta PELLIKADIE. debianentzako: su wget http://crt.comodoca.com/COMODOHigh-AssuranceSecureServerCA.crt openssl x509 -inform DER -in COMODOHigh-AssuranceSecureServerCA.crt -out outcert.crt -text cp COMODOHigh-AssuranceSecureServerCA.crt /usr/share/ca-certificates dpkg-reconfigure ca-certificates archlinux-entzako: su wget http://crt.comodoca.com/COMODOHigh-AssuranceSecureServerCA.crt openssl x509 -inform DER -in COMODOHigh-AssuranceSecureServerCA.crt -out outcert.crt -text cp COMODOHigh-AssuranceSecureServerCA.crt /usr/share/ca-certificates pacman -S ca-certificates https://bugs.launchpad.net/ubuntu/+source/ca-certificates/+bug/696445/comments/4 […]

Firefox: javascript firebug-egaz badabil baie kendukeran ez…

Bueno ba hauri problemie okindxu ta azkanien kontuz okinbide console.log() famosuegaz, firebug eztaueniko aktibeta eztauelako instantzidxeta orduen javascript-ek fallue emongosku ta eztu jakingo zeitzik firebug amatata dauelako :D if(typeof(console)!=’undefined’) console.log(‘pruebie’);

unix timestamp bat mysql-ra DATETIME moduen gorde

timestamp: 11292430084 eta gudu DATETIME formatuen gorde mysql-n: 2010-12-15 17:21:24 (YYYY-MM-DD HH:MM:SS) Adibidez php-tik: … $timestamp = time(); $user = ‘zital’; $query = “update TAULA set azkenlogina = FROM_UNIXTIME(“.$timestamp.”) where nick like ‘”.$user.”‘ limit 1″; …