PHP Classes

2009-04-25 19:37:26 -----------Change all instances of this--...

Recommend this page to a friend!

      Complete Horoscope  >  All threads  >  2009-04-25 19:37:26...  >  (Un) Subscribe thread alerts  
Subject:2009-04-25 19:37:26...
Summary:Package rating comment
Messages:1
Author:phpclasses
Date:2012-05-05 03:52:41
 

phpclasses rated this package as follows:

Utility: Insufficient
Consistency: Insufficient
Unit tests: Bad

  1. 2009-04-25 19:37:26...   Reply   Report abuse  
Picture of phpclasses phpclasses - 2012-05-05 03:52:41
2009-04-25 19:37:26
-----------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;