Results 1 to 10 of 15
Hybrid View
-
17th May 2010, 03:16 AM #1Respected 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');?>
Dman Reviewed by Dman on . Showing alexa using HTML code I need to show alexa of a given domain using HTML code in phpld 2. Let's assume $url as the site url whose alexa I need. Rating: 5Current projects:
Megaupload Premium Multifetch Script | FF Plugin: Tinypic and Imagevenue Image Remoter
Projects in hiatus:
IPB Linkchecker Bot | VB Linkchecker Bot
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
themaLeecher - leech and manage...
Version 5.05 released. Open older version (or...