This is the code which below,
$posts= array(array(
'name'=> $v1t1,
'y'=> $principal,
'color'=> $v1c1
),
array(
'name'=> $v2t2,
'y'=> $mi,
'color'=> $v2c2
),
array(
'name'=> $v5t5,
'y'=> $insurance,
'color'=> $v5c5
)
);
$response = $posts;
$fp = fopen('conv_results.json', 'w');
fwrite($fp, json_encode($response));
fclose($fp);
This code perform perfectly in localhost and linux server.
But in windows server, it display error which is
Warning: fopen(fha_results.json) [function.fopen]: failed to open stream: Permission denied in E:\kunden......\FHA_Json_HC.php on line 63.
Please help me, How can i solve it?