P粉2168079242023-08-23 10:21:52
Meanwhile, you can use writer
to configure encode
: true
to set up extJs so that it sends data periodically (so, You will be able to retrieve data via $_POST
and $_GET
).
renew
At the same time, document also mentioned:
Therefore, writer
's root
configuration may be required.
P粉3930309172023-08-23 00:07:17
If I understand the situation correctly, you are just passing the json data through the http body, not the application/x-www-form-urlencoded
data.
You can get this data using the following code snippet:
$request_body = file_get_contents('php://input');
If you are passing json data, you can use the following code:
$data = json_decode($request_body);
$data
now contains the json data in the php array.
php://input
is a so-called wrapper.