I need to make a http call from Javascript to my web client which is port 7043. So I m making a php call that will redirect my call. My php and javascript files are in the root directory of apache and my javascript is making the call to the php file (http://localhost/redirect.php) and this is what I am doing in the php file
$file = fsockopen("localhost:7043/test/testclient.json", 7043)
This does seem to only open the initial "It works!" web page that comes with apache. the testclient.json returns a json response (which I parse in Javascript) could this be the problem? what do I need to do in php?