-
Recent Posts
Categories
Archives
Blogroll
Meta
Monthly Archives: July 2008
PHP Cache Control for dynamic pages
http://ontosys.com/php/cache.html PHP Cache Control This note describes a scheme for allowing PHP pages to be cached by a browser. Example files cache_check.inc — Logic to support caching of dynamic pages <?php $if_modified_since = preg_replace(‘/;.*$/’, ”, $HTTP_IF_MODIFIED_SINCE); $mtime = filemtime($SCRIPT_FILENAME); $gmdate_mod … Continue reading
preg_replace
RewriteCond %{REQUEST_FILENAME} /(.*)-f([0-9]*).html <?php $patterns = array (‘/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/’, ‘/^\s*{(\w+)}\s*=/’); $replace = array (‘\3/\4/\1\2′, ‘$\1 =’); echo preg_replace($patterns, $replace, ‘{startDate} = 1999-5-27′); ?>
Google checkout
Google checkout & paypal. What’s the difference ?
增加内存表的使用空间
如何增加内存表的使用空间 this is how to change it with my.cnf /usr/local/mysql/bin/mysqld_safe –user=mysql -O max_heap_table_size=320M & 默认的是16M,可以根据自己的需要,增加到需要的大小
Top 10 SQL PerformanceTips
How to optimize your sql performance? Check here Top 1000 SQL Performance Tips Interactive session from MySQL Camp I: Specific Query Performance Tips (see also database design tips for tips on indexes): Use EXPLAIN to profile the query execution plan … Continue reading
mstring installed as a port under FreeBSD
{\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\nowidctlpar\fi-4800\li4800\b\f0\fs20 Main >> Installing port in /usr/ports/converters/php5-mbstring\par \par Installing port in /usr/ports/converters/php5-mbstring\par ===> Vulnerability check disabled, database not found\par => php-5.2.6.tar.bz2 doesn’t seem to exist in /usr/ports/distfiles/.\par => Attempting to fetch from http://br.php.net/distributions/.\par php-5.2.6.tar.bz2 … Continue reading
exim
Main >> DNS Functions >> Edit MX Entry /var/spool/exim/msglog/6 Current MX Entries Domain MX Entry Always Accept hobid.com 0 hobid.com Delete 20 alt1.aspmx.l.google.com Delete No Set To Yes Main >> Service Configuration >> Exim Configuration Editor Exim Configuration Editor Configuration … Continue reading