When logging with PHP, or Ajax request error, You Want To debug. We usually write information to a specified file. Then the problem is handled according to the corresponding information. For example, I like to add the following code $ fp = fopen ('.
This code is like/** + ------------------------------------------------------------------ * string Truncation in thinkphp, supports Chinese and other encodings + ---------------------------------------------------------- * @ static * @ access public
In this example, three files are required: Ajax. jsvar xmlHttp; // function S_xmlhttprequest () {if (window. activeXObject) {xmlHttp = new ActiveXObject ('Microsoft. XMLHTTP ');} else if (window. XMLHttpRequest) {xmlHttp = new XMLHttpRequest () ;}}
First, check whether the session is automatically enabled or you need to manually enable it through session_start ():; specify whether the session module automatically starts a session when the request starts. The default value is 0 (not started);
Configuration and Compilation: This is the simplest version and disable all extension modules;
[Plain]. /Configure -- prefix =/home/pub/johnny/network/install-php -- host = mips-linux-gnu -- datadir =/home/pub/johnny/network/install-php /data --
[Php] /*** Chinese Word Segmentation* + ---------------------------------* @ Param stirng $ string the string to be processed* @ Param boolers $ sort = false Reverse Order Based on value* @ Param Numbers $ top = 0 return the specified quantity. By
Assume that the php version is 5.2.x.
If it is a lampenvironment, PHP source file php-5.2.x.tar.gz after decompression there will be a php-5.2.x folder.In the php-5.2.x folder./configure -- prefix =/opt/php5.2, make, make intall,The php5.2 folder
In php, the difference between global and $ GLOBALS [""] originally felt that both global and $ GLOBALS had the same writing style, however, in actual use, it is found that the difference between the two is still very big!
Let's take a look at the
It takes about 10 hours to complete the process. The instructor's guidance page is highlighted a lot.
Then the competition took two hours, and the school's computer room was relatively pitproof that ie6 DW was 2004.
The php part of the source
Today, I re-implemented Object-Oriented Programming and learned the magic of _ construct, a parameter of an instantiated object, and the magic method executed before the destruction of an object.And_ Get: the first parameter for obtaining private
Learn curl again today
PHP provides curl _ * series of functions to operate curl.
The following are commonly used: Curl_init initializes a curl session Curl_close: of course, this is disabled --! Curl_error: the error message of the current
Upgrade PHP from 5.3 to 5.4.16 for an internal system in the production environment
Login is not allowed after generation. When two pages on the server are redirected, $ SESSION is not obtained.
Sadly, I tried to find a solution on the Internet and
load ($ filePath); // $ filename can be an uploaded file, or the specified file $ sheet = $ objPHPExcel-> getSheet (0); $ highestRow = $ sheet-> getHighestRow (); // get the total number of rows $ highestColumn = $ Sheet-> getHighestColumn (); //
It is clear that php does not support multithreading. However, it is a headache for people who need a multi-threaded feature. Fortunately, there are several solutions that can be solved, similar to multithreading. The following are my summary of the
$ A = 2; $ a = 1? $ Test = "enterprise": ($ a = 2? $ Test = "region": $ test = "Other Places"); echo $ test; first, judge whether $ a is 1. If it is a direct output enterprise, if it is not to continue to judge, it is equivalent to embedding another
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