Copy codeThe Code is as follows:$ Long = "big_long_variable_name ";$ Long = "PHP";/* use the string stored in the variable $ long as the name of the new variable, equivalent to $ big_long_variable_name = "PHP ";*/$ Short = & $ big_long_variable_name;
Note that zend guard must be used to encrypt the PHP file before it is uploaded to the server. If apc is used, it is unnecessary. For Messages seen from Wikipedia, apc will be built into php6, so apc is worth learning.
1. Install Extension
In ubuntu
In our work, we often use regular expressions to match the data we want, and even replace the matched data with the data we need. It seems difficult to do this, but if you are familiar with regular expressions, it is not a dish.
Example 1: $ string
First, we ,. net, PHP application shares to make a comparison, simply divide the current mainstream applications into two categories, one is enterprise applications, one is Web site applications, the following table is my summary, not necessarily
PHP regular expressions are mainly used for pattern segmentation, matching, search, and replacement of strings. Regular expressions may be inefficient in some simple environments. Therefore, you need to consider how to better use PHP regular
The following is a PHP Class and object learning note written in the course. I hope this tutorial will be helpful to you.
Personal notes... for reference. If you have any mistakes, please point out. Thank you.
The Code is as follows:
How can I describe such a sentence? Help, online, etc.$ Num = $ _ POST ['v1 '] + $ _ POST ['v2'] + $ _ POST ['v3'] + $ _ POST ['v4 '] + $ _ POST ['v5 '] + $ _ POST ['v6'] + $ _ POST ['v7'] + $ _ POST ['v8 '] + $ _ POST [' v9'] + $ _ POST
Problem description in CentOS system using Apache server install GBK encoding program garbled, this is mainly because the default installation of Apache server character encoding for UTF-8, if the GBK program does not force encoding, garbled
I suddenly encountered the php Notice: Use of undefined constant error when I was doing php. One is that the variable is undefined. Let's take a look at the solution.
Error Message
Php Notice: Use of undefined constant
Analysis
These are PHP prompts
Mb_convert_encoding is used to convert the encoding. I have never understood the concept of program encoding, but now it seems a bit open. However, the English language generally does not have Encoding Problems. Only Chinese data can have this
After changing the Php environment today, we found that the error message "Deprecated: Function session_register () is deprecated" is displayed. I will introduce it to you.
Let's first look at the code
The Code is as follows:
Copy code
Today, when I configured the apache and php environments, I personally felt that the configuration was complete. After I wrote the php file myself, I was able to execute the test successfully. However, when I ran phpMyAdmin, I was prompted that the
Php web page digital counter code this php counter is a simple counter code used to count the number of visits to a web page, using txt text files and php fopen functions for operations.
Php tutorial webpage digital counter codeThis php counter is
You can directly use HTTP_USER_AGENT to obtain the browser version in php. However, you need to determine the version of the browser,
Example 1
The Code is as follows:
Copy code
Function get_user_browser (){If (empty ($ _
This article describes how to configure Memcache in Drupal7. I hope this method will be helpful to you.
Memcache configuration is not much said. Because drupal has many modules and frequent database calls, memcache is a required configuration in the
The join () function combines array elements into a string.
The join () function is the alias of the implode () function.
Example
$ Arr = array ('hello', 'World! ', 'Beautiful', 'day! ');Echo join ("", $ arr );?> Output:
Hello world! Beautiful
The following is a conversion of datetime date and time to adult \ ', \ 'months \', \ 'day \ ', \ 'hour \', \ 'sub-type \', \ 'Seconds \ 'to display. For more information, see.
The following example shows how to convert datetime to adult, month, day,
The following provides the php code for determining whether the array is null. Because the array is a composite data type, we cannot process it like other complex data types. Let's look at the example below.
Method1. Use count (array) to retrieve
The original version has some problems in SQL 2000. Correct the error and run it in SQL 2000./*************************************** *****************Author: (wleii165@yahoo.com)Version: 1.0Creation Time: 20020227Modification time:Function:
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