8 lines
193 B
PHP
8 lines
193 B
PHP
<?php
|
|
$response["name"] = "Henrik";
|
|
$response["age"] = 11;
|
|
|
|
header('Access-Control-Allow-Origin: *'); // http://localhost
|
|
header('Content-Type: application/json');
|
|
|
|
echo json_encode($response); |