Category: PHP
-
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…
-
Post Views: 16 http://cn2.php.net/manual/zh/function.file.php file — read the entire file into an array, through the file function, you can directly correspond to the data in the database one by one, and complete the modification of the data!
-
Post Views: 15 deprecated: function set_magic_quotes_runtime() is deprecated in e: \wwwroot\city.chengdu.cn\include\common.inc.php on line 39 warning Since PHP 5.3.0, this function has been discarded. It is strongly recommended not to apply this function. The reason is this! The solution is: //set_magic_quotes_runtime(false); //Disable to escape the input of external resource input ini_set(“magic_quotes_runtime”,”0″); magic_quotes_runtime “0” Remove this option in PHP…
-
Post Views: 14 In the process of developing a donation website recently,http://xsj.sczyfw.org/,在PC端的支付成功后,遇见如下问题: Later, the value of the request parameter is still changed: the value of payment_type is 4, which means that it is possible to donate. The result is as follows: In addition, the Alipay donation platform also sent an email to the donated Alipay account. The screenshot is…