How do you get help from the great God? For example there is a list of fields saved (' 1.jpg ', ' 2.jpg ', ' 3.jpg ');
How do you decide if he is the same as the picture field stored in the database and returns the missing image name from the
__sleep () and __wakeup ()
Public array __sleep (void)
void __wakeup (void)
The serialize () function checks to see if there is a magic method __sleep () in the class. If present, the method is called first before the serialization operation is
Definition and usage
The Setcookie () function sends an HTTP cookie to the client.
A cookie is a variable that is sent to the browser by the server. A cookie is usually a small text file that the server embeds into a user's computer. This cookie
Do we know the ternary operator from PHP 5.3? : There is a simple way to do this:
This is actually equivalent to:
In PHP5, syntax analysis is written like this: | Expr '? ' {Zend_do_begin_qm_op (&$1, &$2 tsrmls_cc);} Expr ': ' {
Asymmetric encryption
As for what is asymmetric encryption, do not say here, everyone Google go. Here is that, recently in doing an external recharge encryption service, then involved in this encryption processing, in the middle encounter a few
Http://aa.baidu.dd/index.php/fdsafdeeee/index/1.html
Http://aa.baidu.dd/index.php/joifdafdfdsan/index/1.html
Http://aa.baidu.dd/index.php/feppppoin/indefdasfdax/1.html
No matter what you write, run to the default home controller, even if the
For example, you use PHP to develop the site's Member login page, of course, to implement verification code, verification code can be static, or dynamic, text can be Chinese characters, English, French, Japanese and so on, can be casually replaced.
See the user in the discussion of PHP & symbols, to thoroughly understand its usage, it is necessary to discuss the two forms of variables.
PHP variables are stored in memory, and the variables are not directly the contents of the value, but the
Read the collection of PHP and MySQL Web development notes:
1. Benefits of code Reuse
Cost, reliability, consistency
Note: Reusing code can save a lot of effort as long as the original code is modular and well written. At work, try to
[CONTENT_SC] + trade name (Chinese): Company name (English): firm Address: Guangzhou business: Gold, silver, coins, banknotes, stamps, fun, tea contact name (Chinese): Zhang San Contact person name (English): Telephone 123232328899 Fax: QQ23232370
Because the PHP5.5 version discards the Preg_replace/E mode, it is recommended that you replace the Preg_replace_callback function. But the problem is, for the next piece of code do not know how to write, this is a template class variable
$APPENSTR = $buf = "; $time = time (); for ($i =0; $i 5) {break;} if ($buf) {$appenStr. = $buf;} Else{break;}} Echo $appenStr;
Read a lot of information on the Internet, is socket_read this function blocked, resulting in the client program has
1. It is quicker to use single quotes instead of double quotes to contain strings. Because PHP will search for variables in a string surrounded by double quotes, single quotes will not, note: only echo can do this, it is a string can be used as a
Single Sign-on steps:
User access to Application a.com
Application a.com Redirect to login.com (certification center) and bring the corresponding application address
Login.com for data authentication
Login.com back to a.com and add
Name= $name, $this->age= $age $this->sex= $sex;} /* Output cannot access private person:: $name object cannot directly access and set the value of the private property, but through the Magic Method __get ($proName), __set ($proName, $proValue ) can
The server environment is as follows
Window Server 2012R2
Iis+php+mysql
A Web site based on the PHPCMS
The problem is as follows:
A button in the page, in the browser haste mode, is not displayed, in compatibility mode, is visible
The same site
Previously written a simple voting function, the role of PHP post value if it is consistent with the database content, then count+1 as follows
Now want to change the check.php from the original single box to a number of votes on the
focusphp
Focusphp is a miniature PHP framework
Todo
Improve the Docker development environment
Add Background Management
Framework and Project separation
Complete unit testing, continuous integration with Travis CI
Note
Add a point before the path name to display normally
But can not be all the path of the project to add, ask God to solve it????
Reply to discussion (solution)
What is the URL you are visiting?
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