Friday, December 30, 2011

PHP on windows


PHP 5.3
http://www.apachelounge.com/download/
http://windows.php.net/download/ (PHP 5.3.x VC9 x86 Thread Safe)

PHP 5.2
http://httpd.apache.org/
http://windows.php.net/download/ (PHP 5.2.x VC6 x86 Thread Safe)

Friday, December 09, 2011

Getting a LAMP install going with full UTF-8 (not necessary with gentoo, it already defaults to UTF-8 everywhere).

php config
sudo vim /etc/php5/apache2/php.ini

default_charset="utf-8"
mbstring.internal_encoding = UTF-8

sudo service apache2 restart

mysql config
sudo vim /etc/mysql/my.cnf

[client]
default-character-set = utf8

[mysqld]
default-character-set=utf8
character-set-server=utf8
collation-server=utf8_general_ci
skip-character-set-client-handshake

sudo service mysql restart






source(s): http://www.source.com