Topic: whats wrong with this snippet of code? (Read 733 times)
aka J Love Community Supporter?
Bill Gates is my home boy
Gender:
Posts: 884
1636 credits Members referred : 4
« on: Jan 04, 2006, 10:29:35 AM »
Code:
/* begin my edit (pr addition)*/ $clean_url = parse_url ( $data['weblink_url'] ); $clean_url = $clean_url[ 'host' ]; echo "<img src='".THEME."images/bullet.gif'> <a href='".$data['weblink_url']."' title='".$data['weblink_name']."' class='side'> ".$itemsubject."</a>--PR: "; include('http://justinlove.net/pagerank.php?url=$cleanurl'); echo "<br>"; /* end my edit (pr addition)*/
it is supposed to display the PR of the cleaned url. (nik, you know what this is) instead of usng an image it uses text. for each link, it will display like 10 different numbers, when its supposed to only display the 1 PR # for that site..
aka J Love Community Supporter?
Bill Gates is my home boy
Gender:
Posts: 884
1636 credits Members referred : 4
« Reply #2 on: Jan 05, 2006, 09:00:02 AM »
hmm but it seems to display the PR of any site fine, if i dont use it inside another file. like if i use include('pathtopagerank.php?url=www.webdigity.com') it will work fine, showing 1 number.. heres an example of the PR of sleekpixel, http://www.justinlove.net/pr.php.. but here is code for pagerank.php