Replace Accents by Normal Unaccented in PHP

Sometimes we need the string to only contain unaccented characters, for example urls, xml, filename etc.   Expecially before PHP6, You may think of function setlocale() and iconv(), but they are evil…   If you’re writing code for yourself, to be used on a server you control, locales could be made to work if your […]

Posted in PHP | Tagged , | Leave a comment

Configurations of htaccess for Multi-Sites in Sharehost

It’s the htaccess configurations for multiple websites in sharehost. Cause sometimes you may not be able to modify apache vhosts.  

Posted in Apache | Tagged , | 1 Comment