Monthly Archives: January 2012

HTML limit access to mp3/swf

SetEnvIf Referer otherdomain.co.uk internal
#

order Deny,allow
Deny from all
allow from env=internal

display chinese stored in mysql

mysql_query(“SET character_set_results=utf8”, $conn);
mb_language(‘uni’);
mb_internal_encoding(‘UTF-8’);
mysql_select_db($dbname, $conn);
mysql_query(“set names ‘utf8′”,$conn);