Eine sehr schöne erläuterung mit vielen Beispielen und weiterführenden Links!
In my opinion there are 2 simple solution to people using adblock etc techniques(apart from blocking firefox which is ridiculus).
- 1 put all your pictures into a folder call 'advertisement', so anyone with adblock activated will only see half a page
- 2 use js to hide all content when some ads script is not loaded(and displaying some message eg plz disable adblock and reload this page)
- 2(more extreme) deliver only content with display:none, use js to show the content, so by blocking your js they gain nothing
my rtf never showed üÜ etc correct(was created by Microsoft word), so here comes the fix! (no help for chinese letters etc)
/**
* @param $word in utf-8 encoding
*/
function utf82rtf($word){
//does not work with multibyte
$word = mb_convert_encoding($word,'ISO-8859-15','UTF-8');
$out='';
for($i=0;$i125)$out.="\\u$code\\'".dechex($code);//pre 125 = readable
else $out.=$letter;
}
return $out;
}
Aktuelle version meines php errorhandlers auf Google Code hier
Sehr schöne Methode um andauernde ifs zu umgehen, vorallem für cross-browser Scripte(also alles if IE then bla elseif Opera then...).
Die Idee:
beim ersten Aufruf der Funktion überschreibt sie sich selber mit der richtigen Funktion. Alles klar ? Wenn nicht -> Erklärung
