<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19154">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hola Lucas !!! Gracias.</FONT></DIV>
<DIV><FONT size=2 face=Arial>Estaba viendo algo parecido en un ejemplo que
encontre aca</FONT></DIV>
<DIV><FONT size=2 face=Arial><A
href="http://www.ribosomatic.com/articulos/conversor-de-divisas-moneda-con-php-y-google/">http://www.ribosomatic.com/articulos/conversor-de-divisas-moneda-con-php-y-google/</A></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>en el cual hace una consulta a Google y luego
parsea con Expresiones regulares el html obtenido...</FONT></DIV>
<DIV><FONT size=2 face=Arial>El tema es que no me acuerdo nada de expresiones
regulares y todavia no tuve tiempo de ponerme a probar...</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV>Rogelio A. Schwindt<BR>Analista de Sistemas<BR>Area informática<BR>FCA -
Balcarce<BR><A
href="mailto:agrainfo@mdp.edu.ar">agrainfo@mdp.edu.ar</A><BR>---------------------------------------------------------</DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=unespac@gmail.com href="mailto:unespac@gmail.com">unes pacio</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=php-avanzado@pato2.fi.mdp.edu.ar
href="mailto:php-avanzado@pato2.fi.mdp.edu.ar">Lista del curso de PHP
Avanzado</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 13, 2011 9:21
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Php-avanzado] Convertir
Moneda para Campo en Form</DIV>
<DIV><BR></DIV>Buenas Roger, si no tenes alguna api que te de el valor del
dolar directamente, podes usar curl para cargar el codigo html de la página y
despues parsearlo buscando con una expresion regular algo asi
<DIV><td xxxxxxxxxx>Dolar</td><td
xxxxxxxxxxxx>n.nnn</td><td xxxxxxxx>n.nnn</td></DIV>
<DIV>lo metes en una variable y haces lo que se te antoje. Salu2
<DIV><BR></DIV>
<DIV>PD: yo pondria que esto lo haga una vez al dia y lo guarde en un archivo
para mejorar el tiempo de respuesta</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV><BR><BR>
<DIV class=gmail_quote>El 13 de octubre de 2011 08:37, Rogelio A. Schwindt
<SPAN dir=ltr><<A
href="mailto:roger@telefax.com.ar">roger@telefax.com.ar</A>></SPAN>
escribió:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV bgcolor="#ffffff">
<DIV><FONT size=2 face=Arial>Hola.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Para un formulario de pago online estoy
necesitando que el valor de uno de los campos se rellene automaticamente con
el valor de:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial> X * cotizacion del dolar tipo venta del
banco Nacion Arg. (<A
href="http://www.bna.com.ar/bp/bp_cotizaciones.asp?op=m"
target=_blank>http://www.bna.com.ar/bp/bp_cotizaciones.asp?op=m</A>)</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Alguno tiene implementado algo similar o algun
ejemplo?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Gracias.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV><FONT color=#888888>
<DIV>Rogelio A.
Schwindt<BR></DIV></FONT></DIV><BR>_______________________________________________<BR>Php-avanzado
mailing list<BR><A
href="mailto:Php-avanzado@pato2.fi.mdp.edu.ar">Php-avanzado@pato2.fi.mdp.edu.ar</A><BR><A
href="http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado"
target=_blank>http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</A><BR></BLOCKQUOTE></DIV><BR></DIV></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Php-avanzado mailing
list<BR>Php-avanzado@pato2.fi.mdp.edu.ar<BR>http://www3.fi.mdp.edu.ar/cgi-bin/mailman/listinfo/php-avanzado</BLOCKQUOTE></BODY></HTML>