End of FileExcuse me, after I query the data table. If you send a query statement to determine whether it is the end of a file. If it is not the end of the file, Run "condition" while ($ result! = EOF) Does this sentence seem wrong? What should I do?
1. PHP and ASPASP is actually not a language. It is just the abbreviation of Active Server Pages. The syntax used in ASP is actually a script version of Visual Basic. The biggest drawback is that ASP was born on Microsoft's Internet Information
A constant must be defined before use; otherwise, an error occurs during program execution. In the php tutorial, use the define () function to define constants.
1. Syntax format: define ("constant name", "Constant Value ");
Example: define ("php360
How to solve Chinese garbled characters in the php tutorialThe most obvious thing is that ajax post get is garbled in Chinese,
When Using ajax to pass Chinese characters,. ff will be very smart and automatically convert Chinese characters to
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
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 ();//
A common problem is that php + CKFinder solves the problem of garbled characters when uploading images with Chinese names.
Garbled characters in uploaded Chinese name files
Find the following configuration code in ckfinder/config. php:
CKEditor + CKFinder + php File Upload configuration method. The new version of CKEditor only provides the basic text editing function. The upload module is composed of CKFinder, another component. Here we mainly record some parameter configurations
We have an open_basedir error in require, include, require_once, and include_once. Below are some solutions for Baidu. For more information, see.
The following error is reported if you use require or include files (whether./xx. php or xx. php
You can use ini_set to quickly modify php. ini configuration settings, no need to open php. ini is enough, especially when you do not modify php on the VM. the role of this function will be discovered when ini is authorized. For ini_set,
If you are using an independent server and have the permission to modify the configuration file, you can set the time zone by modifying the date. timezone attribute in php. ini. We can set the value of this attribute to one of \ "Asia/Shang \", \
When phpmyadmin is used, we sometimes see this prompt that the mysqli extension cannot be loaded. Next I will summarize the solution.
Mysqli is an enhanced version of mysql extension for php. The performance is much better than that of mysql
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
We often encounter the conversion of uft-8 characters in gbk or gb2312 encoding, but in the use process conversion often encounter some problems, the following describes how to use the String Conversion function provided by php to implement
We know that there are two methods for php to write variables in the array. We will see this prompt that you have written a [name], so there will be a Notice: Use of undefined constant name-assumed name prompt, the solution is described below.
How
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
This article describes how to solve the Fatal error: session_start (): Failed to initialize storage module: files problem.
Original solution: Fatal error: session_start (): Failed to initialize storage module: files
After compiling and installing
Read text files and display them on the web page. This article provides two methods to read text files and display them on the php instance on the web page. The method is simple: Use fopen and add explode to implement.
Read text files and display
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
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