Tag Archives: PHP 5.4

htmlspecialchars() improvements in PHP 5.4; the PHP default_charset is here. Input has left untouched so far, first assumable is output encoding will lead to input encoding. But can’t resolve the general dilemma of unknown input encoding for your webapp. See … Continue reading

Posted on by hakre | Leave a comment

PHP UTF-8 String Length

If you’ve got an UTF-8 encoded PHP string (e.g. when working with DOMDocument) and you don’t want to rely on the mbstring extension to get it’s length, this can be solved with a simple regular expression (as the string does … Continue reading

Posted in PHP Development, PHP Library, Pressed, The Know Your Language Department | Tagged , , , , , , , , | 1 Comment

Substitutes for PHP 5.4’s htmlspecialchars.


Posted in Hakre's Tips, Pressed | Tagged , , , | Leave a comment

getallheaders available for FASTCGI in PHP 5.4

Good news. PHP 5.4 – according to docs – will support the “apache alias” getallheaders(). That means, you can get all header values of the request w/o fiddling any longer with server configuration. N1. Read On: What new feature in … Continue reading

Posted in Linked, PHP Development, Pressed | Tagged , , , , , , , | 5 Comments