The URL I am using (removed from the code below) is valid - I have triple checked this.
This script should open the url, open the specified file, read the contents of the first line, and echo them.
The error I am receiving is:
Warning: fopen(getid1.0): failed to open stream: No such file or directory in /file_test.php on line 5
'getid1.0' IS a valid file that outputs one line of data - I can access it from a browser with no problems...
Any ideas?
My Code:
<?
$ch = exec ("/usr/local/bin/curl -curl_init('https://secure.domainremoved.com/gw/native/')");
$myFile = fopen("getid1.0","r");
$myLine = fgets($myFile,255);
exec ("/usr/local/bin/curl -curl_setopt ($ch, CURLOPT_FILE, $myFile)");
exec ("/usr/local/bin/curl -curl_setopt ($ch, CURLOPT_HEADER, 0)");
exec ("/usr/local/bin/curl -curl_exec($ch)");
exec ("/usr/local/bin/curl -curl_close($ch)");
fclose($myFile);
echo "'" . $myLine . "'";
?>
Thanks,
-=Lazzerous=-