session,cookie之数据库存储,文件存储,测试等

session,cookie文件,数据库存储,直接上代码:

(continue reading…)


typo3 mobile version of a web site

Mobile phones become smarter at displaying the web. According to Google Analytics reports for several web sites, the number of visitors coming from phones grows every week. Therefore having a mobile version of the web site becomes an important business advantage. In this article I describe how to easily create a mobile version of the web site using TYPO3 and TemplaVoila. (continue reading…)


How to enable Memcached cache in TYPO3 4.3

Types of caches in TYPO3

There are three different caches in TYPO3 4.3:

  • cache_hash
    This cache saves data produced by some TYPO3 functions, mainly by substituteMarkerArrayCached. This cache can be very large, it is used only if page is not cached and it does not make sense to enable Memcached for this cache. Database or file will work best.
  • cache_pagesection
    This cache stores parsed TypoScript templates. It can be stored in Memcached but database is my personal preference for this cache.
  • cache_pages
    This cache stores pages. This is what needs to be as fast as possible. So Memcached will be the best candidate for this cache.

(continue reading…)


MySQL的InnoDB和MyISAM对比及优化

InnoDB和MyISAM是在使用MySQL最常用的两个表类型,各有优缺点,视具体应用而定。基本 的差别为:MyISAM类型不支持事务处理等高级处理,而InnoDB类型支持。MyISAM类型的表强调的是性能,其执行数度比InnoDB类型更快, 但是不提供事务支持,而InnoDB提供事务支持已经外部键等高级数据库功能。 (continue reading…)


cmd 阻止某文件夹内写入文件

用cmd的cacls命令可以,比如你要限制的文件夹是c:\123

操作如下: 打开“开始”,选择“运行”,输入“CMD”,打开命令行窗口,在命令行窗口中输入一下命令:cacls c:\123 /p everyone:n

然后会提示你是否确定,按Y即可。


PHP中用Memcache存储Session数据

使用memcached的好处不言而喻,它不仅减少了系统访问数据库的压力,而且提高系统的反应速度。特别是做多台服务器集群 时,memcached有效的解决了session共享的问题。架构确实变复杂了一些,但应用起来却极为简便,几乎不需要修改任何程序代码,通过修改几行 配置信息即可实现。 (continue reading…)

1 Comment more...

TypoScript in 45 minutes

Table of Contents
TypoScript in 45 minutes…………………..1
Introduction………………………………………………………….3
About this document……………………………………………..3
Feedback………………………………………………………………..3
TypoScript – a quick overview………………………………4 (continue reading…)

如何安装和配置Cassandra

Cassandra属于最近比较流行的一款NoSQL数据库,http://nosql-database.org/中给NoSQL的定义如下:

下一代的数据库产品应该具备这几点:非关系型的,分布式的,开源的,可以线性扩展的。这类数据库最初的目的在于提供现代网站可扩展的数据库解决方案。这个运动开始于2009年初,目前正在迅速的发展。这种类型的数据库具有:自由的schema,数据多处备份,简单的编程API,数据的最终一致性保证等等。所以我们将这种类型的数据库称为NoSQL(不仅仅是SQL,全称为“not only sql”)。

下面我们一起来看看如果分别在Windows和Linux环境下安装和部署Cassandra。 (continue reading…)


subversion SVN服务器的使用

在机子上装上subversion后建立一个文件夹如:svn\project。project为存储的仓库名。

进入doc命令下用svnadmin create –fs-type bdb d:\svn\project创建svn的仓库。 (continue reading…)

1 Comment more...

Location href search hash …

location对象
含有当前URL的信息.
属性
href 整个URL字符串.
protocol 含有URL第一部分的字符串,如http:
host 包含有URL中主机名:端口号部分的字符串.如//www.cenpok.net/server/
hostname 包含URL中主机名的字符串.如http://www.cenpok.net ;
port 包含URL中可能存在的端口号字符串.
pathname URL中”/”以后的部分.如~list/index.htm
hash “#”号(CGI参数)之后的字符串.
search “?”号(CGI参数)之后的字符串.

location对象 含有当前URL的信息. 属性 href 整个URL字符串.  protocol 含有URL第一部分的字符串,如http:  host 包含有URL中主机名:端口号部分的字符串.如//www.cenpok.net/server/  hostname 包含URL中主机名的字符串.如http://www.cenpok.net ; port 包含URL中可能存在的端口号字符串.  pathname URL中”/”以后的部分.如~list/index.htm  hash “#”号(CGI参数)之后的字符串.  search “?”号(CGI参数)之后的字符串.


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress