Hi 🙂
Thanks for the suggestion. I've done a couple of echos. It appears that when I use fopen("address"); it doesn't seem to open the full amount.
It's retrieving it from a text file. The text file size is between 50000 bytes and 52000 bytes, yet it just won't open.
It appears to cut off the file at a particular point. This is the code I'm using:
function getCSV($csv) {
$file = fopen($csv,"r");
$read = fread($file,"60000");
if($read == "") {
die("Could not read file.");
} else {
return $read;
}
}
I set the byte size to a higher value as the url doesn't actually point the the text file directly, it's a ?=?= type of url and for some reason, filesize() doesn't work either.
Thanks,
Chris