okay so i managed to get CURL to echo out the contents of the file, but idealy i need it to load a remote php file and allow me to echo out the vars from the remote file?
here is my code at the moment:
<?php
$ch = curl_init();
$timeout = 0;
curl_setopt ($ch, CURLOPT_URL, 'http://dth-scripts.com/VASlicenses.php');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
// display file
print($file_contents);
echo $var1; // Var from remote file
//$host = $_SERVER['HTTP_HOST'];
//echo $host;
?>