1. General Cache Technology:
Data Cache: data cache refers to database queries.PHP Cache TechnologyWhen accessing the page, the system first checks whether the cache data exists. If the cache data does not exist, it connects to the database,
Write extension, unable to access global variables such as $ _ post, $ _ Get, $ _ server, etc,
The following are provided by yaf:Code, I removed the yaf-related macros...
1 /** Yaf documentationHttp://yaf.laruence.com/manual/**/
2
3
Memcache is a high-performance distributed memory object cache system. By maintaining a unified and huge hash table in the memory, memcache can be used to store data in various formats, including image, video, file, and database retrieval results.
It is necessary to make PHP pages static, especially in the CMS system. After some content is generated, it will basically not change. In this case, if HTML is used to make the pages static, it will undoubtedly reduce the burden on the service to
Installing PHP 5.2.x or 5.3.x on Redhat es5, centos 5, etcRef: http://www.centric-it.com/2008/03/13/installing-php-52x-on-redhat-es5-centos-5-etc/
To install PHP 5.2.5 (highest in repository at this time) You can make use of a RPM repository
Simple php development framework --- litephp
This framework is written in my spare time. lightweight and efficient. templates and caches are available (Dz templates are used), and they do not adopt the complex mode of classes and objects. use
PHP # ######################################## ######################################## ################# /* Function: Read the INI file. [not] supported section. there may be multiple consecutive space versions in the configuration value: 1.0
Every PHPProgramWe all know that PHP has a powerful regular expression function. For the convenience of future work, I sorted out information about regular expressions on the Internet to facilitate future work.
A regular expression (Regular
PHP memcache
// Connection$ Mem = new memcache;$ Mem-> connect ("192.168.0.200", 12000 );
// Save data$ Mem-> set ('key1', 'this is first value', 0, 60 );$ Val = $ mem-> get ('key1 ');Echo "Get key1 value:". $ Val. " ";
// Replace Data$ Mem->
ArticleDirectory
Use memcache in Windows
Use memcache in Windows
1. Download The memcache's windowsexample first. After the downloaded file is decompressed, it will be displayed as an executable file named memcached.exe.Program
2.
Data Definition:
/*
Zend_hash.h
*/
Typedef Struct Bucket { Ulong H; /* Used for numeric Indexing */ Uint Nkeylength; Void * Pdata; /* Here is the data corresponding to the item pair in the array. It is a bit special that if the
Uchome implements an encapsulation class for MySQL databases without using open-source database frameworks such as ADODB or pear. The advantage of doing so is that there are very few files and the space is very small.
1. Database ConfigurationLike
Because it was written during lunch break, I am not very careful about it.
The main issue is the old-fashioned issue of OOP...
I have been working for two years and have some ideas about oop, But I 've rummaged through the introduction of OOP in
View code
//
Print, Echo Functions
Print "This is my first
Program ";
$ Word = "This is my second Program ";
Print
$ Word ;
Echo "3rd programs ";
//PrintfPrintf("% '* 10.2f", 456.7 );Echo" ";Printf("% B", 8 );Echo" ";
My PHP version of fetionSource codeThe file has been fully published. Please click "download of PHP fetion source code publicly available" to download all the attachments.Code.
A few days ago, I studied Feixin intermittently. In the meantime, I
========================================================== ====================
Substr
========================================================== ====================
Return part of a string (PHP 3, PHP 4, PHP 5) String substr (string, int
A problem was found a few days ago. The time obtained by date ("Y-m-d G: I t", time () is eight hours earlier than the local time, but my system was clearly a Chinese Standard (GMT + 8) and finally found the problem:
The date. timezone option has
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service