1, first download WDCP php5.3 upgrade Script
wget http://down.wdlinux.cn/in/php_up53.sh
2. To install
SH php_up53.sh
3, see "PHP update is OK" hint that php5.3 upgrade completed
Zend Opt is no longer supported from php5.3 and can be used Zend
For example, $ _ GET ['AA']; PHP Notice: undefined index 'AA' will appear.The following is a summary of the PHP Notice: undefined index solution.1. php. ini configuration file, error_reporting = E_ALL &~ E_NOTICE2. Add an isset function isset ($ _
The code is as follows:Copy code If (isset ($ _ FILES ['file']) {$ Upload = 'upload/'. $ _ FILES ['file'] ['name'];If (is_uploaded_file ($ _ FILES ['file'] ['tmp _ name']) {// The iconv function solves the problem of garbled Chinese names of
Sometimes, based on some special requirements, you need to use the include () method in PHP to call a file that independently provides services in the project. If the called file uses the GET method to import data, you need some tips.For example,
1. Modify three items in the PHP configuration file: vim/usr/local/php/etc/php. ini(1) post_max_size = 50 M # maximum POST data acceptable to PHP(2) upload_max_filesize = 50 M # maximum value allowed for file Upload(3) max_execution_time = 300 #
Array preg_split (string pattern, string subject [, int limit [, int flags])Returns an array that contains the substrings that are separated by the boundary matched by the regular expression pattern in the subject.If the limit parameter is specified,
Cookies are often used to identify users. Cookie is a small file that the server stays on the user's computer. When the same computer requests a page through a browser, it sends a cookie at the same time. Through the php Tutorial, you can create and
The code is as follows:Copy code Echo ' Delete ' You can also use the following method to delete an instance: The code is as follows:Copy code Here, you only need to modify the connection username and password of your database tutorial,
In php, there is such a function checkdnsrr to verify that dns can be accessed to check whether the email address exists.*/ The code is as follows:Copy code $ Email = "abc@111cn.net ";$ Check_email = checkdnsrr ($ email, "");If ($ check_email
Simple Data Query The code is as follows:Copy code // Connect to the database$ Link_id = mysql_connect ("localhost", "root", "") or die ("connection failed ");If ($ link_id){// Select a databaseMysql_select_db ("my_test ");// The above is the
Introduction to php Tutorial arrayThe array function allows you to operate on arrays.Php supports single-dimension and multi-dimensional arrays. At the same time, the database query results are provided to construct an array function.InstallArray
$ Str = "corn, broccoli, zucchini ";$ Ar = explode (",", $ text );Print_r ($ ar );/*Definition and usageThe explode () function separates strings into arrays. SyntaxExplode (separator, string, limit) parameter descriptionSeparator is required.
$ Array [] = 1; // defines an array$ Array = array (1); // defines an array/*How does php define a two-dimensional array (multi-dimensional array?Defines the elements of a one-dimensional array as an array, which is a two-dimensional array,$ Aa =
If (isset ($ _ FILES ['upimg ']){If ($ userGroup [$ loginArr ['group'] ['upload'] = 0) {Echo '{"error": "Your User Group does not have the permission to upload images! "}'; }Else {$ SavePath = "attachment/img/". date ('Y/m/d/h ');MkDirs ($ savePath )
Multithreading in phpIt is much easier for the server to send multiple requests to implement multiple processes. It can only be used in cli mode. It can be used in special cases, such as sending tasks.The file lock is not very reliable for shared
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