Category Archives: PHP

PCL Zip temp files location

define(‘PCLZIP_TEMPORARY_DIR’, ‘/usr/www/temp/’);

http://www.phpconcept.net/pclzip

Advertisements

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);