Category: Programming Language
-
Post Views: 11 1. Screenshot of the code that can be verified successfully under Windows 8.1: 2. When the RESTClient test under FIFEFOX of CentOS, the verification fails: 3. Analyze the code and find that the loading intl extension failed: 4. Run the command on CentOS: yum install php-intl to install the intl extension: 5. The intl installation is successful,…
-
Post Views: 16 1. You need to implement this URL first:https://www.shuijingwanwq.com/2014/12/26/439/ 2. The current php version is php 5.3.3 3. Edit /etc/yum.repos.d/remi.repo, set[remi]Enabled=1 below,[remi]Indicates php 5.4 version, there are 5.5 and 5.6 below, here use 5.4 4. Execute the yum repolist command to see if the remi source is added successfully 5. Uninstall PHP 5.3.3 related programs 6. Install the…
-
Post Views: 14 1. Since it is ready to use the Yii 2.0 framework, which requires PHP 5.4 or later, it is decided to upgrade the PHP version; 2. The current environment is: Windows 8.1 64, Apache 2.2.25 (http://www.apache.org/)、MySQL-5.5.28、PHP-5.3.5、phpMyAdmin-4.2.9.1; 3. Prepare to upgrade to: Windows 8.1 64, Apache 2.4.12 (http://www.apachelounge.com/)、MySQL-5.5.28、PHP-5.4.42、phpMyAdmin-4.2.9.1,主要是将PHP升级为5.4.42,Apache从VC6编辑的转换为VC9编译的,且升级为2.4.12; 4. Open the URL:http://windows.php.net/download/#php-5.4-ts-VC9-x86, download php-5.4.42-win32-vc9-x86.zip; 5. Read the prompt…
-
Post Views: 12 Because passport.xxx.com and soft.xxx.com are two secondary subdomains of xxx.com, in the case of both processing exit status, the Send a synchronization login notification through ucenter to realize login, but in many cases, passport.xxx.com and soft.xxx.com may One is the login status, the other is the logout state; at this time, you need to realize the synchronization…
-
Post Views: 9
-
Post Views: 14 In order to make the test environment of the intranet as much as possible to the online production environment, the httpd, ftp, mysql, etc. of the intranet are all installed on the CentOS 6.5 64 bit, but my development environment is still Windows 8.1 64-bit, and the program is also in the development environment, so the problem…
-
Post Views: 11 The reason is that there are no expansion packs in the official source! Since the source code compilation and installation is more troublesome, I decided to add another source, and finally decided to use the EPEL source. The steps to install the EPEL source are as follows: 1. Install the yum priority plugin yum install yum-priorities…
-
Post Views: 17 1. What is the difference between echo(), print(), print_r()? echo() is a language structure, no return value The function of print() is basically the same as echo(), and it is also a language structure. The difference is that print has a return value, and always returns 1 print_r is a recursive print for output array objects 2.…
-
Post Views: 15 The code is as follows: //$data1 = file_get_contents(http://bbs.chengdu.cn/i_index_newdata.php?fids=202,238,239,240,241,242,259,271); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,http://bbs.chengdu.cn/i_index_newdata.php?fids=202,238,239,240,241,242,259,271); curl_setopt($ch, CURLOPT_RETURNTTransfer, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 50); $data1 = curl_exec($ch); curl_close($ch); Since the content of the remote file is read, I finally decided to use curl to replace the file_get_contents, and the feeling speed and stability have…