I am working on a software project and have written a validation system to help prevent theft of the software. I was reading back through the code, and found a huge "loophole" that could potentially allow the motiviated users to copy the program and install it without even contacting the activation server. So, I modified the program and the server to patch that up. Now, I need a PHP page that can check to make sure the user paid for the software, payments made using PayPal, then generate a random string. I then need the page to POST that random string to the validation server ( HTTP ) and listen for the response from the server. It will need to POST this parameter: Validator = [Random String] It will tell the page if the random string has already been submitted and to try another, or that it accepted the string. I would like the string to be numerical, but I think alpha - numeric would be better and give more options. I am pretty confident this can be done, but am not sure how to do the PHP part.
+2
A:
Which PHP part?
You could generate a random string with md5.
To POST from a PHP script, just use curl.
philfreo
2010-09-19 05:32:57
Sorry... This is hat I need the PHP page to do: 1). Verify that the user did pay the proper amount through PyPal. 2). If the user paid, generate a random string, display it to the user and POST it to an HTTP server using this parameter: Validate = [Random String]I am not a PHP programmer, but am learning. I do think I could find some examples using curl and md5 for random string generation, but how would the payment verification work?
Zachary Brown
2010-09-19 06:01:41
philfreo
2010-09-19 15:11:03
Thanks! Thank you everyone who helped!
Zachary Brown
2010-09-19 20:57:46