In PHP we use the most common error mechanism has try catch{} this to handle can be very instant noodles catch to error, but in PHP for a lot of also provide error view and error closed this can be processed in php.ini can also be in the file at the
I am the current PHP cache is divided into these four mechanisms, the first way, the need to load modules, may be charged for example Zend Company, may be free, but more discussion, the second way, such as in the mature large site with more
PHP file upload problem, can not upload files of Chinese file name?
First of all: PHP support for the Chinese language is not as good as English, so please try to use pure English + digital upload file name, can be uploaded on the server after the
We often encounter arrays when using the array does not exist, resulting in our Jean array[100] such when there is notice:undefined offset error, let me show you how to solve this problem
Cases:
The code is as follows
Copy Code
If you are using a standalone server with permissions to modify the configuration file, setting the time zone can be done by modifying the Date.timezone property in PHP.ini. We can set the value of this property to one of \ "asia/shang\", \
PHP Ajax Examples and AJAX tutorial 1 create JavaScript programs for XMLHttpRequest objects. 2 the JavaScript program that issued the asynchronous request. 3 a JavaScript program that handles server responses.
PHP Tutorial Ajax Examples and Ajax
Number prototype: String Iconv (String $in _charset, String $out _charset, String $str)
In particular, the second parameter description:
The output charset.
When using Iconv () to convert an output character encoding an unsupported character, such
PHP connection MySQL database garbled is usually the Chinese characters will be there, the English will not appear, because the MySQL default connection for UTF8, if your page and database encoding is not uniform, it is possible
PHP date format Legality regular validation code this section PHP regular date tutorial, provides three kinds of validation user input date is not the correct date format Oh, two kinds are verified with regular date, one is to use Checkdate to
In PHP If we do not have time zone configuration run using the PHP datetime function will prompt some time zone problems, there may be time zone is not correct, and Beijing time related to a few hours, I would like to give you students to introduce.
No database online polls to investigate PHP code this is a php +txt text file made online call voting system, without database support can complete the online user survey function.
Online Survey program code
In the Windows environment: Originally in PHP tutorial 4.3.0 run a normal program, in 4.3.1 why many error, the general tip is: notice:undefined varialbe: variable name.
For example, the following code:
Copy the code code as follows:
if (! $tmp _i) {
This article collects a summary of the workarounds for PHP "Invalid memory location access" When using PHP, and can refer to a friend who needs it.
New configuration of the PHP environment, or just made configuration changes, such as the newly
This article to introduce PHP Spreadsheet_excel_reader import Excel Chinese display garbled and can not read. xlsx format of the file, there are students who encounter such problems can enter the reference.
Spreadsheet_excel_reader is a common PHP
Today in the configuration of the Apache and PHP environment, the personal feel configured, and wrote the test PHP files can be executed successfully, but when running phpMyAdmin, prompted not to load the MySQL extension,
Please check the PHP
This article to introduce Iconv () [Function.iconv]: detected an illegal character in error several solutions, there is a need to understand the friend can refer to.
When using the Iconv function to convert gb2312 to Utf-8, how do some Chinese
PHP tutorial comes with Json_encode to process JSON data, then their support for Chinese is not good, let's look at an example
echo Json_encode (Array (123213, ' China '));
{"PlatformID": "123213", "userid": "1023", "username":
It's interesting to see the Taobao API, and learn PHP tutorials by the way
http://open.taobao.com/
Look at the way the API is called, is to assemble the URL and then send an HTTP request to interact with the server
Here's how it works:
Article to share an article about PHP fgetcsv windows and Linux compatibility issues, have encountered the problem of students can refer to the next.
Setting area: Simplified Chinese, UTF-8 encoding
The code is as follows
Copy 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