Install php tutorial Extension: Steps for memcache in windows
1. Download php extension dll: http://downloads.php.net/pierre/
2. Put. dll under the extension directory of php, which is generally in the ext folder of the php Directory.
3. Modify php.
Start to study the gvim configuration file (_ vimrc). Now let's take a look at the configuration before I generate garbage codes.
Description of enconding, fileeconding, and fileecondings in the configuration file:Encoding: The character encoding
Open the config. inc. php tutorial.
1. Change 'auth _ type' to 'cookies' in cookie authorization mode, and then modify 'blowfish _ secret' to use an arbitrary string as the cookie's encrypted string. If no encryption key exists, the system displays "
In the development of the uft-8 page Chinese Verification Code garbled, found the cause in the baidu search, the following solutions are in need of friends can refer.
The Code is as follows:
Copy code
Session_start ();//
Among the many predefined SERVER variables in PHP, $ _ SERVER ["REQUEST_URI"] is frequently used, but this variable is only supported by apache. Therefore, we need a more general method to obtain the value of REQUEST_URI.
The Code is as
This is a problem you have encountered. This morning, when I used an ec to develop something, I found that an error occurred while creating an administrator account when installing Ecshop on the local machine. The solution is as follows.
Modified
Use the mysql method of PHP
PHP has provided the MySQL function library from the very beginning. Many programs depend on mysql_connect, mysql_query, mysql_fetch_assoc, and so on. However, it is recommended in the PHP manual:
If your MySQL version is
Today, when using a php product, Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) in .... the prompt message is checked because the user memory is not taken into account. Let's take a look at how to solve this
My page is coded in UTF-8, how can I ensure that the exported excel will not contain garbled characters? In addition, is it necessary to provide files of different encoding formats for download because the system encoding is different in different
The FCKEditor editor is out-of-office and has poor support for Chinese characters. If we use the Chinese file name directly, an error occurs or the Image Upload fails. The solution is as follows.
The following describes the two ways to modify the
Dedecms5.7 has a bug in weight sorting. Next I will show you how to solve weight's invalid solution step by step. For details, refer to the following.
The file involved is the includetaglibarclist. lib. php file:
About 570th rows:
The Code
Phpmyadmin cannot be logged on because I modified the password of my mysql server. Baidu later found the cause, after changing the mysql password, we also need to modify the config in the phpmyadmin directory. inc. php content.
Error
During php development, you may encounter an error message such as PHP Notice: undefined index. Next I will introduce you to the solution to the undefined index error prompt.
For example, $ _ GET ['aa']; PHP Notice: undefined index 'aa' will appear.
Friends who use fck may encounter this situation: If your file name is English letters, there is no problem. If you upload Chinese characters, there will be garbled Chinese names, next I will analyze and introduce the solution for you.
The main
The problem of Chinese truncation garbled characters is generally Chinese Text mixing more, if you intercept English will not be a problem, Chinese will have, the main reason is: String encoding for UTF-8, A Chinese Character occupies three bytes
Php error handling and Exception Handling Methods and instance tutorials in program development, error handling is very important. Today this article will tell him about php development, the error handling function also provides examples to
To determine whether a user logs in, the first step is to save the data to the session after the user logs in successfully, then, when the user accesses the user permission that needs to be logged on, it determines whether the session is empty. If
Php ajax-like dedecms-verify whether news exists. This tutorial uses php ajax to check whether the news title entered by the user already exists in the database. If it returns 0, it returns 1.
Php tutorial ajax imitation dedecms verify whether news
The first video starts right when I open the page. As I select each movie from the list on the right, the page reloads and shows the movie I selected.
How sweet and simple was that? One Flex file, one PHP file, and a little database magic for the
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