1. Home installation webtatic EL6 Yum source
RPM-UVH http://repo.webtatic.com/yum/el6/latest.rpm
2. Stop Web server
Service Nginx Stop
Or
Service httpd Stop
3. Delete the current PHP installation php5.4
Yum Remove php*
Yum Install php54w
4.
This article is the source code compiled to install Gearmand and PHP Gearman, complete the installation Gearman the latest version of the current 1.1.2.
You can also take a fool-type one-click installation, which commands the following:
I'm looking at a piece of code inside the Dede, he's using PHP to get the image address of the IMG SRC in the content of the HTML file and upload it to the local server. Oh, let's see how it's written.
$body = "China Web first station ";
PHP file Processing
When writing a Web page, it is usually important to be able to save data. The general approach is one of two ways: write data to a file, or save it in a database (such as MySQL). Of course, the easier way (no other technology
Recently used in the interface code json_encode, on the Internet to find that json_encode is set to UTF-8 Chinese will not garbled, verified this method is indeed effective, but do not know why, the code won't work after a while. The following is
1. Chinese garbled characters in mysql + phpThis problem occurs because the database connection and webpage encoding are inconsistent.SolutionWhen connecting to mysql, we will set a sentence later.Mysql_query ("set names gbk ");ExampleIn the
Problem Analysis and Research1. cookie disabled on the client2. A browser error occurs and the cookie cannot be accessed for the moment.3. The session. use_trans_sid in php. ini is 0 or the -- enable-trans-sid option is not enabled during
UTF-8 is used in mysql to indicate UTF-8, which is a type of encoding.In php, mysql_query ("set names UTF-8 & Prime;); because mysql defines utf8 instead of UTF-8, this statement cannot be executed, the effect is the same as that of mysql_query
Now that I am older, my sense of smell in the face of problems is no longer sensitive. I feel that nothing is correct. I wonder if I forget to quit after redirection, and there is content output later, however, I checked the code and found that
If I read an www.111cn.net file The code is as follows:Copy code $ U = 'www .111cn.net '; // This file is 100 GB$ A = file_get_contents ($ u ); Run promptNote: string can be as large as 2 GBIt cannot be larger than 2 GB. Let's go to the
The htmlentities function may contain garbled characters when used in Chinese character variables. The code is as follows:Copy code $ ResultsText = str_replace ("[QUERY]", htmlentities ($ query), $ resultsText ); The correct method is to change
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