DESCRIPTION:
COMFI PHONE CARDS BEST RATES EXPORT IN HTML FORMAT
USAGE:
One Serie
Several Series (with sample css)
NO HEADER
Limit output to random 14 rates out of given
Use "_" to replace space
Do not forget to pass your pushline shop using SITE parameter
CSS classes:
table.rt_tbl - table
td.rt_hdr - header style
td.rt_n1, a.rt_n1, td.rt_r1 - odd lines
td.rt_n2, a.rt_n2, td.rt_n2 - even lines
Example
Usage Notes
Do not call this script often
Use caching technique and call this page once in an hour
Caching Script Example
function get_file($url,$fn,$timeout=3600) { # update once in 3600 seconds( once in an hour )
$tm=filemtime($fn);
if(time()-$tm>$timeout) {
$content = join ('', file ($url));
if(strlen($content)>80) {
$fp=fopen(,"w");
flock($fp,2);
fwrite($fp,$content);
fclose($fp);
return $content;
}
}
return join ('', file($fn));
}
echo get_file("http://export.pushline.com/export/rates.php/Midle_East:148,168,151,97,66",
'comfi-rates.dyn');