* Matthew Toseland <[EMAIL PROTECTED]> [2008-11-03 20:12:21]:

> On Monday 03 November 2008 20:04, Julien Cornuwel wrote:
> > [EMAIL PROTECTED] 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

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to