Login   Register  
PHP Classes
elePHPant
Icontem

Horoscope

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Complete Horoscope  >  All threads  >  Horoscope  >  (Un) Subscribe thread alerts  
Subject:Horoscope
Summary:Solution
Messages:1
Author:Doug Warren
Date:2009-04-25 19:35:33
 

  1. Horoscope   Reply   Report abuse  
Picture of Doug Warren
Doug Warren
2009-04-25 19:35:33
-----------Change all instances of this-------------
$pg=file_get_contents($lnk);
if(strpos($pg,"iTxt")!==false)
{
$ii=strpos($pg,"iTxt")+6;
$ij=strpos($pg,'<',$ii);
$hor=substr($pg,$ii,$ij-$ii);
}else{
$hor="Not found";
}
return $hor;
-----------------------------To this---------------
$pg=file_get_contents($lnk);
if(strpos($pg,'id="intelliTxt"')!==false)
{
$ii=strpos($pg,'id="intelliTxt"')+16;
$ij=strpos($pg,'<',$ii);
$hor=substr($pg,$ii,$ij-$ii);
}else{
$hor="Not found";
}
return $hor;