Re: stock quotes

From: Date: Tue, 12 Dec 2000 16:18:09 +0000
Subject: Re: stock quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-29901@lists.php.net to get a copy of this message
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 >

« previous php.general (#29901) next »