* Matthew Toseland <toad at amphibian.dyndns.org> [2008-11-03 20:12:21]:
> On Monday 03 November 2008 20:04, Julien Cornuwel wrote:
> > toad at freenetproject.org a ?crit :
> > > Author: toad
> > > Date: 2008-11-03 19:28:41 +0000 (Mon, 03 Nov 2008)
> > > New Revision: 23292
> > >
> > > Modified:
> > > trunk/website/pages/en/news.php
> > > Log:
> > > Update $:?\194?\163 ratio from xe.com on 03/11/08.
> > > I will update this when I remember, hopefully once a week.
> >
> >
> > You can fetch the ratio from Yahoo directly with something like this :
> >
> > $fp =
> >
> fopen('http://fr.finance.yahoo.com/d/quotes.csv?s=USDGBP=X&f=snl1d1t1c1ohgv&e=.csv',"r");
> > $content = fread($fp,1024);
> > $fields = explode(';',$content,5);
> > $ratio=$fields[2];
> >
> > You might want to do it in a cron task and store the value in a file, to
> > avoid delays.
> >
> > I tried to do it myself but I'm not allowed to commit on the website
> > part of the SVN.
>
> Now you can. Sorry.
>
> However, you're right that it should be a cron job. Nextgens, can you arrange
> this, once a day, please?
> >
Done in r23314
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20081104/f8dce663/attachment.pgp>