Environment:
Operating system: Linux
Server Software: nginx/1.1.16php/5.3.27
MySQL version: 5.5.34-log
PHPCMS Program version: Phpcms V9.5.7 release 20140625
Problem:
Local: Local debugging everything is OK
On the server: Phpcms Phpsso communication is successful, unable to register the account, login, through the tracking code found in the following code returned by the $FP null value
$fp = @fsockopen (($ip? $ip: $host), $port, $errno, $errstr, $timeout);
Fsockopen function replaced by Pfsockopen function return value is still empty
After searching, it turns out that there is a security problem with the Fsockopen function and the Pfsockopen function, which has been disabled by the server
Security Notice Notice URL: http://www.xrnet.cn/store/2012-01-10.html
Workaround:
Replace Fsockopen, Pfsockopen functions with other functions, such as Stream_socket_client
Examples such as the following
Before modification:
$fp = Fsockopen ($host, $errno, $errstr, 30);
Or
$fp = Fsockopen ($host, $port, $errno, $errstr, $connection _timeout);
After modification:
$fp = Stream_socket_client ("tcp://". $host. " ", $errno, $errstr, 30);
Or
$fp = Stream_socket_client ("tcp://". $host. ":". $port, $errno, $errstr, $connection _timeout);
Note: Discuz communication failure may also be the cause!
The above describes the PHPCMS can not login, registration, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.