I was less, idle nothing, feel every compile and install, and then modify the Php,mysql,redis,nginx configuration file feel good youth time wasted. If you think about it, how to install PHP environment and related configuration with one click. So I
Zend_cache the basic operation of the file cache, the code has written comments, let's study together
Copy CodeThe code is as follows:
Require_once ("zend/loader.php");
Load Zend Cache Class (Zend_cache)
Zend_loader::loadclass
Copy CodeThe code is as follows:
/**
*
* Statistics software and articles, such as month, week, day ranking
*
* $field _id (article ID)
*/
The method of counting month, week and day ranking
Require_once (DirName (__file__). " /..
Mapping The function of the main is the actual Internet access to the current mapping of the computer, first we have to do the router port mapping, the common open port has 80,21,3389, etc., 80 is the site common port, 21 is the FTP server common
PHP has a very rich built-in function, many of which we have used, but still have a lot of functions we are not familiar with, but they are very useful. In this article, I've listed some little-known PHP functions that will make your eyes
First, CodeIgniter manual related introductionThe second fragment of the URI determines which method in the controller is called. CodeIgniter allows you to use the _remap () method to repeal this rule:
Copy CodeThe code is as follows: Public
English:
The code is as follows
function Tourl ($STR) {$str = preg_replace ('/[^a-za-z0-9]+/', '-', $str);$str = Trim ($str, '-');Return Strtolower ($STR);}
Contains special characters:
code as
This article mainly describes the thinkphp implementation of multilingual features (language Pack), the need for friends can refer to the following
1. Add the following configuration code in the config.php of Home (the project name you are taking)
Copy CodeThe code is as follows:
function Custom () {
}
Class custom{Public Function index () {
}}Print_r (get_define_position (' Custom '));
/*** /* @param string $name function name or class name* @return Array*/function Get_define_position
Duplicate data starting with a number such as:
Copy CodeThe code is as follows:
Array (
[0] = 100
[K1] = 100
[1] = 2123
[K2] = 2123)
This method can take the value of the number key to remove, the array is sorted by the key in reverse order, and
In PHP, if you use a session to determine whether a user is logged in or not, you can do so when you exit:
Session_Start ();Session_destroy ();
The session indicates that it has ended. The next sentence should be written JS, so that the page
"PHP Public Platform Development Series"
01. Configure the interface02. Public Platform Sample Code analysis03. Subscription event (SUBSCRIBE) processing04. Simple Reply Function development05. Development of weather forecast function06. Translation
Use PHP to invoke the webservice developed by the Java language.
The client submits two arguments of type string, and the server returns an object type.
The server uses AXIS-1.4 as the SOAP engine. The client is PHP5.2.9 and uses nusoap as the SOAP
By understanding Appserv more suitable for beginners to quickly build a Web server environment, development php! Let's start with the Appserv!
Appserv is a PHP Web station tool combination package, the author will be some network of free station
This article mainly describes the basic operation of the Zend_cache file cache, a simple example, the need for friends can refer to the next
Zend_cache the basic operation of the file cache, the code has written comments, everyone together to learn
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