Jump to content

Help with cURL on a javascript applet


cooldude832

Recommended Posts

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);
}
?>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.