Linux version: Ubuntu 12.04
The configuration of PHP MySQL and Apache was completed today
Mainly source code configuration,
Apache is mainly 2.4.2 version
PHP is mostly 5.3.11 version
MySQL is mostly 5.1.62 version
A few days ago tried several
Traverse a directory or traverse a directory of files of a specified type, which is unavoidable for every child's shoe when writing a program. PHP itself also provides a number of functions that are often useful, using them correctly, without any
PHP Development will certainly encounter the need to import Excel file content into the database, Php-excel-reader is a class that reads Excel, it is easy to use it to read Excel files very convenient.
Php-excel-reader Download Address:
I will share this out, if later who need to be able to download the following plugin directly
How to use:
In Cnblogs Select Backup data, export an XML to local;
Download the plugin in the attachment, install to the \wp-content\plugins
Each variable in PHP has a scope for it, which is a field in which the variable can be accessed (thereby accessing its value). For starters, variables are scoped to the page where they reside. Therefore, if you define a $var, the rest of the page
base64_encode-encoding data using MIME base64
Base64_encode () returns uses Base64 to encode data. This encoding is designed so that binary data can be transmitted through a non-pure 8-bit transport layer, such as the body of an e-mail message.
base6
Reproduce the problem with a piece of code first
At first glance, the results are puzzling:
Copy the Code code as follows:
$string =
Hello
World EOF;
$data = simplexml_load_string ($string);
Print_r
Here I draw a diagram showing the handshake part of the WebSocket connection between the client and the server, which can be done very easily in node, because the net module provided by node has already encapsulated the socket socket, and developers
These days to see a few articles about the tail recursion, before the end of the recursive not much concept, so back to study the tail recursion.
Concept of tail recursionThe concept of tail recursion (Tail recursion) is a subset of the concept
Ashamed to say, before the null value of the array is either strong write foreach or while, using these two syntax structure to delete empty elements in the array, the simple code is as follows:
Copy CodeThe code is as follows:
foreach ($arr as $k
first, using the Google API to generate two-dimensional code
Google provides a more complete QR code generation interface, call API interface is very simple, the following is the calling code:
$urlToEncode = "Http://www.php.net";
PHP session usage is very simple it can save user submitted data in the form of a global variable in a session and will generate a unique session_id, so that there is no confusion in order to have more, and the session in the same browser the same
Copy CodeThe code is as follows:
Http://www.php.net/article/23093.htm
function Set_cache ($name, $value) {
Set relative or absolute directories, don't add "/" at the end
$cache _dir = "./cache";
Setting extension
$cache _extension = ".
Let's give an example:
Copy CodeThe code is as follows:
$arr = Array (' A ', ' B ', ' C ', ' d ');
Unset ($arr [1]);
Print_r ($arr);
?>
I had imagined that after unset, the array $arr should compress the array to fill the missing element
first, the number is 0.
If you want to automatically generate a number, automatically generate a number, such as the form of "d0000009", "d0000027", then you will face a problem, how to use the left 0 to make such a 8-digit code? I think of two
one, 3 methods of array traversal introduction
1. foreach ()
foreach () is the simplest and most efficient way to iterate through the data in an array.
#example1:Copy the Code code as follows:$colors = Array (' Red ', ' blue ', ' green ', ' yellow '
Many people in the use of Destoon system, often appear to forget the background management password situation, or the management password is not stolen need to retrieve, this time often overwhelmed.
In fact, retrieve Destoon system login password
Software and version selection
Ubuntu 14.04
Ubuntu is one of the most current users of the distribution version, behind the large local tyrants maintenance, can be said to be the best choice for lightweight users. And 14.04 is currently the latest
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