Unofficial Astahosted Members Directory

Pages: 1, 2, 3, 4, 5, 6, 7
free web hosting
Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

Unofficial Astahosted Members Directory

turbopowerdmaxsteel
Check out the latest version 5 of the script: http://maxotek.net/scripts/php-ajax/unoffi...mbersDirectory/

Changes:-

> New & Improved Progress Bar.
> Profile Override - If found, the site address is taken from the member's profile.

Note: Database saving/loading is currently disabled.

Reply

TavoxPeru
QUOTE(turbopowerdmaxsteel @ Aug 4 2007, 11:22 AM) *
Check out the latest version 5 of the script: http://maxotek.net/scripts/php-ajax/unoffi...mbersDirectory/

Changes:-

> New & Improved Progress Bar.
> Profile Override - If found, the site address is taken from the member's profile.

Note: Database saving/loading is currently disabled.

I just check it, and after some problems i finally view it, very nice the progress bar. Do you have a historical page to see how it was made????

Best regards,

Reply

turbopowerdmaxsteel
By Historical Page, do you mean a change log? I haven't kept any such log for this script except for my posts here on Asta.

Right now, I am trying to Integrate a Page Rank Checker into the script. The integration has been done. The page rank calculator needs to calculate a kind of cheksum for the website. This works on a 32 bit system (like my localhost) but on the Astahost server (which I presume is 64 bit), the cheksum is different because there is no overflow there.

I have pin pointed the problem to the XOR (^) operator. The following code yields different results:-

CODE
$t1 = -4738698913;
$t2 = 20;
$t1 = $t1 ^ $t2;


Localhost: -443731637
Astahost Server: -2147483628

It is certainly a case of overflow, because if I reduce the value of $t1 by 1 digit the results are equal. I am trying to learn as to how, the 32 bit machine compensates for the overflow in such cases.

I wish I had taken the Computer Architecture classes more seriously. wacko.gif

 

 

 


Reply

turbopowerdmaxsteel
This is the range of integers in PHP +2147483647 to -2147483648. When any bitwise operation yields a result beyond these boundaries (more than +2147483647 or less than -2147483648), an overflow/underflow occurs. For example:-

The bitwise operator ^ which does the operation XOR on the operands, should return the first number when the second number is 0 (Order is not important). So, the following code should output the number 2147483647 which is what the value of $t1 is.

CODE
<?
$t1 = 2147483647;
$t2 = 0;
$t3 = $t1 ^ t2;
echo $t3;
?>


Now, if we make $t1 greater than the integer boundary for PHP by substituting the value to 2147483648 (which is one greater than the upper limit), the output is -2147483648. As you can see, an overflow occured and the result changed sign turning to the other side. If, $t1 had a value of 2147483649 (two more than the limit), the output would be -2147483647. This is ok and desired by the Page Rank script during the cheksum calculation.

But, cosider the underflow scenario:-

CODE
<?
$t1 = -2147483648;
$t2 = 0;
$t3 = $t1 ^ t2;
echo $t3;
?>


Here, $t1 is on the edge of the lower limit and the output would be -2147483648. When we set $t1 to -2147483649 (one less than the limit) an underflow should happen and the sign should again change causing the output to be 2147483647. This happens on my localhost running on Win XP x86, but not on the Astahost servers. There the result is -2147483648 (the lower bound), no matter how much underflow occurs.

Does anybody have an idea on how to tackle this problem?

Reply

turbopowerdmaxsteel
After hours of brain-storming, where I had written custom Decimal-To-Binary, Binray-To-Decimal, Bitwise XOR Calculator functions and what not. I figured it was pretty simple to do as all that was required was to make the numbers overflow to the otherside. This flow function is what saved the day:-

CODE
function flow($num)
{
    // Adjust Overflow
    if($num > UPPER_BOUND)
    {
        $num = LOWER_BOUND + ($num - UPPER_BOUND) - 1;
    }
    
    // Adjust UnderFlow
    if($num < LOWER_BOUND)
    {
        $num = UPPER_BOUND - (LOWER_BOUND - $num) + 1;
    }
    return $num;
}


Here UPPER_BOUND & LOWER BOUND are defined as :-

CODE
define('LOWER_BOUND', -2147483648);
define('UPPER_BOUND', 2147483647);


With this, I want to announce the release of v 6 which includes a Page Rank Checker and congrats to vujsa for topping the page rank list with his site http://www.handyphp.com

Script: http://maxotek.net/scripts/php-ajax/unoffi...mbersDirectory/

Reply

Jimmy89
Is v6 up and running yet? Also, I'm just wondering why my site is not included in the list? (cubed.astahost.com)

Reply

turbopowerdmaxsteel
Yeah v6 is up and running. With v 5, I modified the core code to tackle various issues. The number of sites has certainly decreased, but I thought it was down to the fact that invalid links are not listed. I will look into this matter, right away. Thanx for reporting!

Update
This issue has now been fixed. After finishing v 4 I started working on the Trap17 version. The current versions are modified forms of the same. In Trap17, 30 links are listed per page whereas over here its 20. This is what led to some accounts being skipped.

Reply

Jimmy89
Its amazing to see how far its developed from the first time I saw it! Well Done and keep up the good work!
-jimmy

Reply

TavoxPeru
QUOTE(turbopowerdmaxsteel @ Aug 5 2007, 01:36 AM) *
By Historical Page, do you mean a change log? I haven't kept any such log for this script except for my posts here on Asta.

Yes, something like a change log, but with some enhancements, like screen shots, statistics or even with different pages for every version developed where someone can view and test it.

Best regards,

Reply

turbopowerdmaxsteel
Here are the latest additions:-

> Added new attrbiutes: Member Since, Posts and an average value of Posts per day.
> Some code optimizations towards an object oriented approach.

I am also thinking about adding something like a summary which at the ends lists members like:-
  • Member with the highest page rank site.
  • The oldest hosted member.
  • The newest hosted member.
  • The most active hosted member (calculated via the Posts/Day attribute).
  • The least active hosted member.

I also wanted to ask if all the members listed in the hosted group are actually hosted. illusion for instance, seems to have joined the forum way back in 2004, but has only 96 posts. Similar cases exist with abhay & polarysekt.

One more thing, I would like to request everybody to keep their site link updated in their profile, the script overrides the previous entries (those found from hosting requests) with this value, if found.

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Pages: 1, 2, 3, 4, 5, 6, 7
Similar Topics

Keywords : unofficial, astahosted, members, directory

  1. Credit System - Transfer Credits Between Members?
    (1)
  2. Permission Denied In Creating A Directory
    mkdir() (6)
    QUOTE Warning: mkdir(/home/whistle/public_html/see/seeto): Permission denied in
    /home/whistle/public_html/see/config.php on line 56 My web hosting is on the astahost. The
    absolute path of my php script is "(/home/whistle/public_html/see". When I try to create a directory
    named "seeto", the error message about permission denied is displayed. The same script I tried on
    another web hosting server "Lycos", it works perfectly. Can anyone tell me what is wrong with it?
    Or anything I should notice more? Thanks. CODE if (mkdir("/home/whistle/public_html/see/seeto"....
  3. Script to allow only members to download media
    from a forum/board.. How to do it ? (18)
    I didnt know where to post this so i posted it here I wanna to know where to find a script where
    people have to register at your forum to download media off your website and i also wanna know what
    it is called. ------------------------------------------------------------- Next time you make a
    post - please be more specific about the topic. It helps a lot if your topic describes your post
    content in brief rather than having a "Help me" - which could mean anything. More often this
    wouldn't pique the interest of the readers at all and your post will get very few respo....
  4. Filesharing
    Filesharing of members own creations (3)
    Hi, As I'm still new into this board, can't I say for sure if it dosn't allready exist.
    By the way did I the other day req for language files to diffrent PHP scripts. I did investigate the
    rplys I did get, but my conclusion was that I might do it by myself, and I'm also almost
    finished with it. What I would like to say is that I don't do this just for my self, and when
    I'm finished would I of cause share it with me to others, and why not share it to other members
    of this board. I don't think that it would be the last time that I'm doing....
  5. How Do U Make Members Only Web-site
    (7)
    how do u make it that only a member of that site can view that page?....

    1. Looking for unofficial, astahosted, members, directory






*SIMILAR VIDEOS*
Searching Video's for unofficial, astahosted, members, directory
advertisement




Unofficial Astahosted Members Directory