Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: PHP Help

  1. #1
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default PHP Help

    Hey,

    How would you make a script that if the scipt on the users server cant find anything (Eg Licence Key) it will lock the domain or script (like a license system)

    Danny
    Last edited by Luno1599; 17-11-2007 at 04:46 PM.

  2. #2
    Join Date
    Jun 2007
    Location
    Kilmarnock
    Posts
    3,227
    Tokens
    50

    Latest Awards:

    Default

    Quote Originally Posted by Luno1599 View Post
    Hey,

    How would you make a script that if the scipt on the users server cant find anything (Eg Licence Key) it will lock the domain or script (like a licence system)

    Danny
    I think someone on here is like in the process of building one of those.
    CPU i5 3570 @ 4.2 GHz | Mobo GigaByte Z77D3H | RAM 8GB | GPU AMD Radeon 6870 | OS Win 8 64-bit | HD 1TB HD and 128GB SSD | Wheel Logitech G27

  3. #3
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Yeah i know i was just wondering so i can try myself XD not to relece or anything im lerning php

    Im just looking for the locking site of thins as help

  4. #4
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    You could do a *simple* script with file_get_contents to get a file on your server that checks the server, ip, and or folder and returns something.

    PHP Code:
    <?php

    $server 
    "bob.com";

    $get_l file_get_contents("http://www.myserver.com/license/check.php?server=$server");
    if (
    $get_l == "expired")
    {
        echo 
    "Your licence has expired.";
        exit;
    }
    if (
    $get_l == "none")
    {
        echo 
    "Thats no license!";
        exit;
    }
    ?>

  5. #5
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Yeah i see that that will echo it but i dont think it will stop the user from doing anything =S

  6. #6
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    If you take and make that into a script, and include it into the configuration file.. then Zend Encode it, it will stop the script from ever running using exit;

  7. #7
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Oh, one last think what would the server end look like :S (as in my end)
    Last edited by Luno1599; 17-11-2007 at 05:05 PM.

  8. #8
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Soz for dubble post cant edit other 1

    Can anyone help me wid this?


  9. #9
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    Server end, do you know how to use MySQL?

  10. #10
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Yes i do =D i just need some guidance


Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •