Results 11 to 15 of 15
-
17th May 2010, 02:25 AM #11OPMemberWebsite's:
InstantRDP.com
-
17th May 2010, 02:33 AM #12OPMemberWebsite's:
InstantRDP.comThis code is way too simple to understand, so let's use this out.
PHP Code:<?php
function alexaRank($domain){
$remote_url = 'http://data.alexa.com/data?cli=10&dat=snbamz&url='.trim($domain);
$search_for = '<POPULARITY URL';
if ($handle = @fopen($remote_url, "r")) {
while (!feof($handle)) {
$part .= fread($handle, 100);
$pos = strpos($part, $search_for);
if ($pos === false)
continue;
else
break;
}
$part .= fread($handle, 100);
fclose($handle);
}
$str = explode($search_for, $part);
$str = array_shift(explode('"/>', $str[1]));
$str = explode('TEXT="', $str);
return $str[1];
echo $str[1];
echo "Pankaj";
}
?>
-
17th May 2010, 03:16 AM #13Respected DeveloperWebsite's:
PlatinumW.org NexusDDL.com HD-United.org CheckLinks.org FLVD.orgJust noticed you never called the function. Also you can't have anything after a return statement.
Code:<?php function alexaRank($domain){ $remote_url = 'http://data.alexa.com/data?cli=10&dat=snbamz&url='.trim($domain); $search_for = '<POPULARITY URL'; if ($handle = @fopen($remote_url, "r")) { while (!feof($handle)) { $part .= fread($handle, 100); $pos = strpos($part, $search_for); if ($pos === false) continue; else break; } $part .= fread($handle, 100); fclose($handle); } $str = explode($search_for, $part); $str = array_shift(explode('"/>', $str[1])); $str = explode('TEXT="', $str); return $str[1]; } echo alexaRank('test.com');?>
Current projects:
Megaupload Premium Multifetch Script | FF Plugin: Tinypic and Imagevenue Image Remoter
Projects in hiatus:
IPB Linkchecker Bot | VB Linkchecker Bot
-
17th May 2010, 03:22 AM #14
-
17th May 2010, 09:47 PM #15Member
Alright im going to close the thread as its all fixed. PM me if you want it re opened for future help.
Please follow signature rules
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Alexa Certify Code help
By atyup in forum Webmaster DiscussionReplies: 0Last Post: 22nd Jul 2012, 09:13 PM -
[Code]Tag showing black color
By saini in forum vBulletinReplies: 7Last Post: 2nd Jan 2012, 07:14 AM -
Help about HTML Code for a Box
By Deadmau5 in forum Web Application/Script SupportReplies: 1Last Post: 19th Nov 2011, 12:52 PM -
Embedded code not showing in homepage
By conrey in forum WordpressReplies: 8Last Post: 5th Oct 2011, 05:51 AM -
HTML Code Help
By S?nic in forum Technical Help Desk SupportReplies: 4Last Post: 24th Aug 2009, 07:37 AM
themaPoster - post to forums and...
Version 5.38 released. Open older version (or...