{ "BCHECK": { "": "new" } }
Übergeordnet: webfan-codeschnippsel-php (1.3.6.1.4.1.37553.8.1.8.8.5.8)
Punkt-Notation: | 1.3.6.1.4.1.37553.8.1.8.8.5.8.1 |
ASN.1-Notation: | { iso(1) identified-organization(3) dod(6) internet(1) private(4) enterprise(1) frdlweb(37553) weid(8) org(1) webfan(8) webfan-software(8) webfan-software-php(5) webfan-codeschnippsel-php(8) lp-backlink-checker(1) } |
OID-IRI-Notation: | /ISO/Identified-Organization/6/1/4/1/Frdlweb/weid/Organization/Webfan/8/5/8/1 |
WEID-Notation: | weid:1-8-8-5-8-1-7 |
DER-Kodierung: | 06:0F:2B:06:01:04:01:82:A5:31:08:01:08:08:05:08:01 |
This class can check if a page has a backlink to another page.
http://www.phpclasses.org/package/7430-PHP-Check-if-a-page-has-a-backlink-to-another-page.html
Download at phpclasses.org...!
/*
Class Backlinkchecker
by T. Wehowski http://webfan.de
License: Do What The Fuck You Want To Public License
Example of use:
$BCHECK = new LP_backlinkchecker('http://www.example.com', 'http://mydomain.de');
$BCHECK->getContents();
$BCHECK->lpFetchLinks();
if($BCHECK->check() !== TRUE)
{
echo 'Backlink not found.';
}else{
echo 'Backlink found';
}
*/
class LP_backlinkchecker
{
var $url;
var $content;
var $links;
var $linktocheck;
function __construct($url, $linktocheck)
{
$this->url = $url;
$this->linktocheck = $linktocheck;
}
function SetLinktocheck($link)
{
$this->linktocheck = $link;
}
function getContents()
{
$this->content = file_get_contents($this->url);
}
function lpFetchLinks()
{
$regexp = "]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>";
preg_match_all("/$regexp/siU", $this->content, $matches);
$this->links = $matches;
return $matches;
}
function check()
{
foreach($this->links[2] as $key => $url)
{
if($url == $this->linktocheck)return TRUE;
}
return FALSE;
}
}
?>
ID | Base36 | ASN.1 IDs (kommagetrennt) | IRI IDs (Kommagetrennt) | RA | Kommentar | Erstellt | Geändert |
---|---|---|---|---|---|---|---|
Keine Einträge vorhanden |
Statischer Link zu dieser Seite