hello can you build me a real time stock quote grabber for prices from international markets? i need something that will auto update and provide real time quotes and if possible charts. can it be done, pm me if you can do it i'll be happy to provide more info
If you aware of PHP and AJAX you could use the following function: function get_string_between($string, $start, $end) { $string = " ".$string; $ini = strpos($string,$start); if($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $stockmarketsite = file_get_contents("http://stockmarket.com"); get_string_between($stockmarketsite,"<div id='startoffigures'>","</div>"); PHP: of course youd have to edit the get_string_between to the right details but hopefully youll get the idea And use ajax to update it every so often and include that page