1. Problem: Public platform official download sample code, using $POSTSTR = $GLOBALS ["Http_raw_post_data"], to get the server push message data. However, some developers find it impossible to receive information when they use it (for example, using Sina Cloud).
2, Reason: its root cause is that the interface configuration URL is located on the server set Register_globals=off. Starting with the PHP4.2.0 version, the default value of Register_globals in the php.ini settings option becomes off.
3. WORKAROUND: 1) Modify the PHP.ini setting to set the Register_globals value to on. If you do not have permission to modify php.ini, the following method is used. 2) This article provides another way to receive messages: In the official example: $POSTSTR = $GLOBALS ["Http_raw_post_data"]; replaced by: $postStr = file_get_contents ("Php://input");
Public number user Send message background PHP reply no response solution