Linux MySQL Connection

Ok, When I run it on the server it works ok but have another problem. The php is:

<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST");
header("Access-Control-Allow-Headers: X-Requested-With");
$data = [ 'a', 'b', 'c' ];
echo json_encode($data); 
?>

And when I just use firefox to access the php it displays:

["a","b","c"]

But when I execute the TWebHTPRequest I get the content of the main page of my website returned.

What am I doing wrong?