File: //opt/af/data/data/savefile1x.php
<?php
$bgtime=time();
$biastable1 = file_get_contents('https://charts.actionforex.com/actionforex/afmarkets/bias_table1.php') or die('Could not grab the file');
$fp2 = fopen('bias_table1.php', 'w+') or die('Could not create the file');
fputs($fp2, $biastable1) or die('Could not write to the file');
fclose($fp2);
unset($biastable1);
$biastablemain = file_get_contents('https://charts.actionforex.com/actionforex/afmarkets/bias_table_main.php') or die('Could not grab the file');
$fp2 = fopen('biastablemain.php', 'w+') or die('Could not create the file');
fputs($fp2, $biastablemain) or die('Could not write to the file');
fclose($fp2);
unset($biastablemain);
$biasusd = file_get_contents('https://charts.actionforex.com/actionforex/afmarkets/bias_table_cur.php?c=usd') or die('Could not grab the file');
$fp2 = fopen('biasusd.php', 'w+') or die('Could not create the file');
fputs($fp2, $biasusd) or die('Could not write to the file');
fclose($fp2);
unset($biasusd);
$biaseur = file_get_contents('https://charts.actionforex.com/actionforex/afmarkets/bias_table_cur.php?c=eur') or die('Could not grab the file');
$fp2 = fopen('biaseur.php', 'w+') or die('Could not create the file');
fputs($fp2, $biaseur) or die('Could not write to the file');
fclose($fp2);
unset($biaseur);
$biasjpy = file_get_contents('https://charts.actionforex.com/actionforex/afmarkets/bias_table_cur.php?c=jpy') or die('Could not grab the file');
$fp2 = fopen('biasjpy.php', 'w+') or die('Could not create the file');
fputs($fp2, $biasjpy) or die('Could not write to the file');
fclose($fp2);
unset($biasjpy);
$biasgbp = file_get_contents('https://charts.actionforex.com/actionforex/afmarkets/bias_table_cur.php?c=gbp') or die('Could not grab the file');
$fp2 = fopen('biasgbp.php', 'w+') or die('Could not create the file');
fputs($fp2, $biasgbp) or die('Could not write to the file');
fclose($fp2);
unset($biasgbp);
$biaschf = file_get_contents('https://charts.actionforex.com/actionforex/afmarkets/bias_table_cur.php?c=chf') or die('Could not grab the file');
$fp2 = fopen('biaschf.php', 'w+') or die('Could not create the file');
fputs($fp2, $biaschf) or die('Could not write to the file');
fclose($fp2);
unset($biaschf);
$biascad = file_get_contents('https://charts.actionforex.com/actionforex/afmarkets/bias_table_cur.php?c=cad') or die('Could not grab the file');
$fp2 = fopen('biascad.php', 'w+') or die('Could not create the file');
fputs($fp2, $biascad) or die('Could not write to the file');
fclose($fp2);
unset($biascad);
$biasaud = file_get_contents('https://charts.actionforex.com/actionforex/afmarkets/bias_table_cur.php?c=aud') or die('Could not grab the file');
$fp2 = fopen('biasaud.php', 'w+') or die('Could not create the file');
fputs($fp2, $biasaud) or die('Could not write to the file');
fclose($fp2);
unset($biasaud);
$biasnzd = file_get_contents('https://charts.actionforex.com/actionforex/afmarkets/bias_table_cur.php?c=nzd') or die('Could not grab the file');
$fp2 = fopen('biasnzd.php', 'w+') or die('Could not create the file');
fputs($fp2, $biasnzd) or die('Could not write to the file');
fclose($fp2);
unset($biasnzd);
Print "Execution Time: ".(time()-$bgtime);
?>