Ajax Access to App (Phone Gap)

Morning - I am trying to create a phonegap build of my WD/Ajax site. All complies fine but I’m having trouble pointing to the clientraw file. I found a thread on using a php file to point to the client raw (added my url into it below). This works for the remote access but turns out phone gap does not run php files so still at a loss as to how to get the ajax file to point to an external server.

?

Andy

?php
# get/return clientraw.txt from a different host
$URL = 'http://finchamweather.co.uk/clientraw.txt'; // make sure you don't use a parameter for this!

$clientraw = file_get_contents($URL);

if (strlen($clientraw) > 0 ) { 
  # got contents .. echo and exit
  header("Content-type: text/plain");
  header("Content-length: " . strlen($clientraw));
  echo $clientraw;
  exit;
} else { 
# unable to get contents
  header("Content-type: text/plain");
  echo "\n";
  exit;
}
?>