Login   Register  
PHP Classes
elePHPant
Icontem

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

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

      Complete Horoscope  >  All threads  >  2009-04-25 19:37:26 -----------Change all instances of this--...  >  (Un) Subscribe thread alerts  
Subject:2009-04-25 19:37:26 -----------Change all instances of this--...
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 -----------Change all instances of this--...   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;