PHP Session Best writes information to Memcache management
The previous approach and benefits of storing data information caches with Memcache can reduce the number of accesses to the database and reduce the stress on the database when the traffic
Picture files, cache files, etc., is it necessary to divide many folders?
See a lot of people say, a folder can not more than 1000 information, otherwise very wasteful resources;
I don't quite understand;
If you traverse the file, this may waste too
Exception handling Try catch default will the error message be recorded in Apache log?
Does the try catch write the exception to the Apache error log?
or the manual file_put_contents ();
If the try catch and error handling are automatically
PHP runtime Environment, server-related configuration
1. In the DOS command window input mysql-hlocalhost-uroot-p Enter the MySQL database,Where-H indicates the server name, localhost means local,-U is the database user name, root is the MySQL
Find the order in which the array values appear in the string
Array
$arr =array (' A ', ' M ', ' N ');
The string is variable, but m and n can occur only once in the string, and false if multiple occurrences occur
Return array $data[' M '], $data ['
Ask a question about PHP arrays
How do you realize that the values that exist in the database let the checkbox check in the page
------to solve the idea----------------------
123
------to solve the idea----------------------
Write it
PHP Strtotime for explanation
$t = ' 2011-01-31 17:21:22 ';
Print_r (Array (
Date (' Y year m month ', Strtotime ($t)),
Date (' Y year m month ', Strtotime (' + 1 month ', Strtotime ($t))),
Date (' Y year m month ', Strtotime (' + 2 month ',
Phpmyadmin-4.0.10.8-all-languages version is not logged in and no prompt
A few days ago also good, need to import a large database, found that there is a problem, and then reinstall and configure the phpMyAdmin, can appear login interface, but after
PHP Shielded Warning
There are several warning on the PHP page:
Omit some warning statements in the middle of the-------------. php:21-40001
Then I add the statement in PHP-----error_reporting (E_all & ~e_notice), after refreshing the page, "40001
php File upload and download
PHP file upload can be used Move_uploaded_file () function
However, the document does not describe how to download the file. I can't find it either. Move_downloaded_file () function
I would like to download the
Brothers and sisters with the environment to help run under.
Test data $str1= "1149395524", $str 2 = "4255390370"
Xor
function My_xor ($text, $key)
{
$i = 0;
$encrypted = "";
foreach (Str_split ($text) as $char) {
$encrypted. = Chr (ord ($char) ^
After Json_encode, the JSON data becomes [{"A", "1"}], how to change to {"A", "1"}
function Get_js_array ($sql) {$result = mysql_query ($sql);$arr = Array ();while ($row = Mysql_fetch_array ($result, Mysql_assoc)) {$arr [] = $row; }$js =
How to remove a field from a two-dimensional array in PHP?
1, requirements: Have the following two-dimensional array, how to remove the field of this array "on" to generate a new array $arr 2
$arr = Array ("net" = = Array ("On", "11", "101", "1001"),
Play PHP (a)---processing Chinese character string lengths in PHP: Strlen and Mb_strlen
Note: This article is a small series of original, if reproduced, please indicate the source: http://blog.csdn.net/u012116457/article/details/42536039
Today
2015.1 knowledge points and functions for writing the message board---> summary
One: Time function and Uniqid ()
1:uniqid (): Generates a unique ID, the length of the string returned by the parameterless parameter is 13, and the parameter is 23
2:
thinkphp back-end controller inside the method Selectmarks () printf printed HTML code, in the front of the body is not displayed, who knows how to format it?
Here is the code://Main address printf start to the end of the printed HTML native code to
Contact PHP is also 1.5, want to ask the next who should be in what aspects of learning what knowledge
Learn PHP 1.5, more than a year of time in the enterprise project growth. Access to some of the technology, usually the web development skills are
PHP settings and read cookies
Concept Understanding:
Cookies are generated by the server and sent to User-agent (typically a browser), and the browser saves the key/value of the cookie to a text file in a directory, The next time you request the
What are the specifications of the PSR series in PHP?
Psr
PHP Standard recommendation shorthand, it should be called PSRs, that is, the series of recommended standards: the current adoption of the specification has PSR-0 (autoloading), PSR-1 (Basic
PHP Development App Interface (i)
PHP is returned to the app in JSON or XML format. This is a good thing to know, to wrap the data in JSON or XML and back to the app
To define the abstract app base class:
Return to the app in XML form:
$code,
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