cooldude832 Posted July 10, 2007 Share Posted July 10, 2007 I'm trying to take the info on http://www.weather.com/outlook/recreation/outdoors/fishing/28911:21 and take the data from the date all the way through the graph any ideas? I want to redisplay it on my pages in my site Link to comment https://forums.phpfreaks.com/topic/59193-help-with-curl-on-a-javascript-applet/ Share on other sites More sharing options...
teng84 Posted July 10, 2007 Share Posted July 10, 2007 im not good using curl so i suggest even if i think this is isnt right you may read the page as text and get details like the source of img and etc hope you know what i mean Link to comment https://forums.phpfreaks.com/topic/59193-help-with-curl-on-a-javascript-applet/#findComment-294067 Share on other sites More sharing options...
trq Posted July 10, 2007 Share Posted July 10, 2007 For starters that is flash, not a java applet. Flash is embedded and no html is produced by it. You will not be able to ripoff the contents. However, notice the little data provided by weather and wildlife? This may help you. Link to comment https://forums.phpfreaks.com/topic/59193-help-with-curl-on-a-javascript-applet/#findComment-294082 Share on other sites More sharing options...
cooldude832 Posted July 10, 2007 Author Share Posted July 10, 2007 yes i did its only a series of algothrims and functions on weather data that creates the fishing information I need the weather data or I just need to write my own fishing algothrims since i have a feeling the weather.com ppl won't let me have it Link to comment https://forums.phpfreaks.com/topic/59193-help-with-curl-on-a-javascript-applet/#findComment-294089 Share on other sites More sharing options...
trq Posted July 10, 2007 Share Posted July 10, 2007 Well, whatever you do.. you cant rip the data from the flash file as you'd hoped. Link to comment https://forums.phpfreaks.com/topic/59193-help-with-curl-on-a-javascript-applet/#findComment-294091 Share on other sites More sharing options...
cooldude832 Posted July 10, 2007 Author Share Posted July 10, 2007 actually to your surprise I've done it with file_get_content http://www.upperstraitscleanlake.org/Fishing/ <?php //burried in my head of my doc so it gets the style for it if($content=file_get_contents("http://www.weather.com/outlook/recreation/outdoors/fishing/28911:21")){ $content = substr_replace($content,"",0,2000);//Strips out the first css idderation $css_start = strpos($content,"<style type=\"text/css\">")-1; $css_end = strpos($content,"</style>"); $css_length = $css_end-$css_start; $css = substr($content,$css_start,$css_length); echo $css."</style>"; $start = strpos($content,"<!-- main module -->")-1; $end = strpos($content,"<!-- end today / tonight -->"); $length = $end-$start; $data = substr($content,$start,$length); } ?> Link to comment https://forums.phpfreaks.com/topic/59193-help-with-curl-on-a-javascript-applet/#findComment-294092 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.