Posted on Monday, 7th April 2008 by Patrick DeVivo

This PHP script is probably the first I ever put together, and at the time the most complex (for me). This GPT script, or Get Paid To script is similar in function to the popular websites SWATCash.com, TreasureTrooper.com, and CashCrate.com. People are paid to complete offers. I wanted to create an extremely simple website where people could complete offers without having to register, and still be “properly” tracked so that they could still be paid. Here is what I came up with in this small script.

Demo: http://earnings-easy.com

Pros:

  • Very simple
  • No MySQL database required
  • Very easy to customize
  • Very little knowledge of PHP/CSS required to customize and work with

Cons:

  • Probably buggy
  • Hard to track offer completion
  • Boring design
  • No admin area to add and remove offers - done manually
  • Very few comments in the script

ReadMe

Style.css

Stylesheet of the script. Incredibly simple. I know about as much CSS as I know PHP.

Index.php

The homepage of the script. This is where the user enters his/her PayPal email address. Not complicated at all, and not too important for customizing.

Offer.php

This is where all of the offers are stored. All it is, is a table which is included in index.html after the user enters his/her email. To add a new offer, you must add a new row to the table with this format:

<tr>
<td><div align=”center”>Offer Name</div></td>
<td><div align=”center”>Instructions/Description</div></td>
<td><div align=”center”>Payout</div></td>
<td><div align=”center”><?php echo “<a href=’http://offerurl.com/$paypal’>Click Here</a>”; ?></div></td>
</tr>

$paypal is the user’s PayPal address - what you use to track offer completion. Be sure to include this where your offer ID is supposed to go. For incentreward.com, the ID goes at the end of the url like: http://offerurl.com/dir/dir/OFFERID

This is very important because it is how you track whether or not a user has completed an offer in the backend of your affiliate network. So here is what one entry might look like:

<tr>
<td><div align=”center”>Ebay</div></td>
<td><div align=”center”>Sign up. Place a bid</div></td>
<td><div align=”center”>10 dollars</div></td>
<td><div align=”center”><?php echo “<a href=’http://incentreward.directtrack.com/z/14113/CD502/$paypal’>Click Here</a>”; ?></div></td>
</tr>

Go ahead and download it here

If you find any bugs or major issues, please contact me via my contact page. If you need any help post a comment.

Notice that I don’t have any copyright material or disclaimers in this script? It’s ok: pirate, share, sell as much of it ass you like. It’s not worth protecting.

Tags: , , , ,
Posted in PHP | Comments (4)

4 Responses to “My Simplest GPT PHP Script”

  1. Melanie Says:

    You should write more about Treasure Trooper. I love that site!

  2. christy Says:

    Hi there, are you offering your script that DOES the tracking and registering? I was looking for something like that and am having an awful time trying to find something.
    thanks!!!

  3. Patrick DeVivo Says:

    You can download the script I currently have running at http://earnings-easy.com here:

    http://patrickdevivo.com/wp-content/uploads/2008/04/gpt.zip

    The tracking is a little hard to work with. Check out the post for instructions.

  4. ERUK Says:

    So does this script actually track?

    If it does, that would be great, I have been looking literally everywhere for a script like this.

Leave a Reply