Yii2-redis Use of small notes
A few days ago, I learned to use it on a project by simply learning the next Redis. We are currently using the YII2 framework, search the website of the next Redis, found the Yii2-redis this extension.
After
How an object can be new does not succeed
Similar to this:
Class MyClass { Private $index; Public function __construct ($index) { if ($index = = = 0) { Destroying objects } $this->index = $index; } Public Function GetIndex () {
How PHP Displays error messages
PHP default does not print errors, if you want to print,
VI $PHP _home/etc/php.ini, modify the following items:
display_errors = Onerror_reporting = E_ALL & ~E_NOTICE
If you set the Error_log variable, comment
PHP uses recursion to implement the full array of strings?
I want to implement the full array of printed strings in the program, the code is as follows
function output ($src _arr){ foreach ($src _arr as $key = + $value) { $temp _arr =
thinkphp Source Analysis (i)
In the work, I came into contact with the development of the thinkphp framework, perhaps for most children's shoes, is a simple use, but as a technology enthusiasts, or do not give up a glimmer of hope, seriously began
PHP Learning Note 1-constants, functions
Constants: Use const (PHP5) Declaration, can only be assigned once, PHP5 the following versions use define;
1
PHP2const the_value = 100; // only const in PHP5 3 Echo The_value; 4 5 Define ('
PHP programmer?
Blink of an eye, came to the brother even learn PHP has been nearly one months, and now in retrospect, really feeling a lot, put the summer vacation, pack luggage, sat on the train, with dreams, came all came to brother Lian, hope in
The principle of callback function and PHP example
Background: In a recent development project, the user should call the service first to start a series of query activities, think for a long time, with a colleague reminded, with a callback function
thinkphp bottom Set jump 404 page
After the development of the project to block the error, in the bottom directory to write a 404 page, the entry file App_debug to False, the code uses the following methods1. Using an empty operation, _empty (),
PHP (6) PHP with FPM and NGINX
PHP (6) PHP with FPM and NGINX
1. Set up latest PHP with Nginx
If get some problem with Libtool to build some library. We should
phpcmf+php+ Diary (i)
Today is the first time to learn PHP because the background is written in PHP, and is used by the open source framework PHPCMF so I have to come to a bad ah,
However, PHP writing background is really convenient, faster than
The difference between include and require in PHP
The difference between include and require, in fact, there is not much difference between the two, if the file to be included does not exist, include prompt notice, and then continue to execute the
How to send e-mail using thinphp
For a long time did not move PHP, suddenly want to send e-mail with thinkphp, but read the books are very messy, did not continue to see, here found a better way:
First step: First we will introduce an external
HTML nested PHP Display user name
$result =mysql_query ("select * from user where username= ' $username '");
if ($result)
{
$row =mysql_fetch_row ($result);
if ($row [1]== $password)
{
Session_Start ();
$_session["username"]= $username;
}
Log in
1. PHP Tutorial _1. Introduction to PHP
PHP is the server-side scripting language.
Before you learn, you need to have a basic understanding of the following knowledge:
Html
Css
What is PHP?
PHP stands for php:hypertext
Simple PHP algorithm problem (with extensions)
Simple PHP algorithm problem (to be perfected ...) )
Print only 0
The specific number is determined by the input parameter n
Print 00000 as N=5
Print n 0 based on n value
Print a line 010101010101010
PHP Exercise Program Notes Cookies
The main point is to set up cookies when logging in and exiting. To save logins and secure exits
1: Setup on login page
Set the value of the cookie_setcookies ($_rows[' tg_username '), $_rows[' tg_uniqid
PHP output_buffering What do you know?
First, we have to say what the cache in PHP is probably!
In PHP, we can roughly divide the cache into client-side caches (browser caches), server-end caches (servers cache). Since PHP is based on B/s
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