This is a migrated thread and some comments may be shown as answers.

What this code mean ?

1 Answer 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Welliam
Top achievements
Rank 1
Welliam asked on 16 Feb 2015, 04:27 AM
In the grids examples (popup editing) I found this code but I dont know why it used like that please explain.

if
($_SERVER['REQUEST_METHOD'] == 'POST') {
    header('Content-Type: application/json');
 
    $request = json_decode(file_get_contents('php://input'));

1 Answer, 1 is accepted

Sort by
0
DavidOBrien
Top achievements
Rank 2
answered on 24 Mar 2015, 08:53 PM
Read this :)

http://php.net/manual/en/wrappers.php
Tags
Grid
Asked by
Welliam
Top achievements
Rank 1
Answers by
DavidOBrien
Top achievements
Rank 2
Share this question
or