Re: stock quotes
| From: | Jacky | Date: | Wed, 13 Dec 2000 17:18:13 +0000 |
| Subject: | Re: stock quotes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30018@lists.php.net to get a copy of this message | ||
Hi ,
I am also very interested to know if the scripts provided at :
http://www.devhome.net/php/scripts/smarket.html
can be used for the currency
exchange rate?
Or if it cannot, Can anybody tell me where could I get anything similar? I
mean, alternative way of using fopen will be interesting.
Jack
jacky@activelifestyle.com
"Power is nothing without control
----- Original Message -----
From: <aji@ins.itb.ac.id>
To: <php-general@lists.php.net>
Sent: Tuesday, December 12, 2000 10:18 AM
Subject: Re: [PHP] stock quotes
>
> how about currencies ?
> Can I use the same scripts ?
>
> - ajik -
>
> On Tue, 12 Dec 2000, [iso-8859-1] Mukul Sabharwal wrote:
>
> > Hi,
> >
> > You can try my script :
> > http://www.devhome.net/php/scripts/smarket.html
> >
> > --- Richard Lynch <richard@zend.com> wrote: > > anyone
> > know any resources that would let me
> > > include current stock
> > > > quotes in my website, maybe linking to a more
> > > descriptive page after
> > > > clicking it?
> > > >
> > > > PHP or other scripting languages too
> > >
> > > Ethical or legal considerations aside, you can just
> > > do like this:
> > >
> > > <?php
> > > $html =
> > >
> >
> > fopen("http://yourfaveonlinetocksite.com/quotes.xxx?symbol=LNUX",
> > > 'r') or
> > > die("Could not open site");
> > > while (!feof($html)){
> > > $line = fgets($html);
> > > echo htmlEntities($line), "<BR>\n";
> > > }
> > > ?>
> > >
> > > Of course, you probably want to tear that HTML apart
> > > and suck out the data
> > > you want...
> > >
> > > There *may* be sites with Open licenses to get
> > > delayed quotes -- There
> > > probably aren't any who can legally give you truly
> > > up-to-date content for
> > > free.
> > >
> > > So, technical-wise, there's no real challenge --
> > > It's the legal issue and
> > > whether you need truly *current* quotes that will
> > > cost you money, or
> > > slightly old ones.
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail:
> > > php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail:
> > > php-general-help@lists.php.net
> > > To contact the list administrators, e-mail:
> > > php-list-admin@lists.php.net
> > >
> >
> >
> > =====
> > To Find Out More About Me : http://mukul.tsx.org/
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Shopping - Thousands of Stores. Millions of Products.
> > http://shopping.yahoo.com/
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>