1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

License Codes for Custom PHP Script

Discussion in 'PHP' started by BenjArriola, Apr 14, 2009.

  1. #1
    I made a custom PHP script I plan to sell.

    I will encrypt by ZendGuard.

    And will sell the license per domain.

    The license code should be correct for the installed domain.

    What would be the best way for me to implement this. If you know any 3rd party tools I can use also, please suggest any.
     
    BenjArriola, Apr 14, 2009 IP
  2. campolar

    campolar Peon

    Messages:
    2,683
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #2
    To run a script under a single, or selected domains, add this php code at the started of the main files:
    
    if ($_SERVER['server_name'] != 'www.ururl.it') {
    die('Not an allowed domain');
    }
    
    PHP:
    You must check the content of the $_SERVER global variable. Use commas for multiple domains...

    And for selling licenses, check:

    Regards,
    campolar
     
    campolar, Apr 14, 2009 IP
  3. BenjArriola

    BenjArriola Peon

    Messages:
    175
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    shucks, I read your reply too late. I read another reply on another forum with only 1 of the websites listed above and I signed up right away with phplicensescript.com

    Now that I read your reply, I should have done a good comparison of the three before i made the decision.

    Anyway since I already paid for phplicensescript before I actually read this, I will use this for now. And thanks for the suggestions and I will try out the others in other future projects.
     
    BenjArriola, Apr 15, 2009 IP