I have a php file that connects to a remote ftp server, and writes a file. Recently, I've been getting an error that says "File Size limit exceeded" everytime it tries to run the following command. This has worked in the past and it is just now starting to happen.
The file is just 2 lines of text, so there shouldn't be a file size issue. Can anybody help me debug what is going on?
$varrate =$result->GetLastRealTimeMetalQuotesResult->MetalQuote->Rate;
$varrate = round($varrate,2);
$res = array($varrate, $varclose);
print_r($res);
// it's rate then close
echo "\n";
echo "time to die is ";
echo $stopitafteraminute-$est;
$fp=fopen("ftp://user:pass@website.com/public_html/rpc-server/textfile.txt", "w", 0, $stream_context);
foreach($res as $key => $value)
{
fwrite($fp,$value."\n");
}
fclose($fp);