Ok, so I have a script to generate a key for some software, but it doesn't seem to be working.
The file "keygen" is in my "cgi-bin" folder.
Here's the code:
Is there a PHP function to call the cgi file, with that same file path, and test that it is finding it right?PHP Code://Required variables
$regname = strtoupper($_REQUEST["regname"]);
$regname=str_replace(" ","",$regname);
//Generate the Key.
$key = exec("QUERY_STRING='C1=6E94DC9069A3C59689B&C3=C5FCD0C6CAE4DD076D41&C6=B4D7CBF158FB9495F6216AA882D2EBE6D1BD2EF74B060C091F4852C712EF887BC217B1CB9D5ECD0CE84F7C001474683C04ADA284C757C0E8C356060EB85B68FC865AB322450114A5606343BCFC2BBED7D5D71E7C7B18FD97C0C744C2FFCF633E8D5DE977A327BB2BD34B1D2B82EAE551367D4EFA5D11AE422153E710F56CC206&C7=C681932549AF4E091682DE3E74EFB585E9DDF2F967C7EAAD945EB87F13F7012E81C8453D78B387999E4213F4DC9BD7B30ED5C5719E61EA1581355515D4A6E0740E21ACA264A8E5FD67CFB420E0471831C79B3494B5EAA81002E058EDF7010B2EF954333FD7F9C73D6254F49414BD1C76AC353CC2C36E2DE30327E20F662869D9&RegName=$regname&EncryptionConst=190213445&ModeID=1&SignatureBits=120' REQUEST_METHOD='GET' /home/daytrade/public_html/cgi-bin/keygen.cgi");
//$key2 = str_replace("-", "", $key);
$key2 = str_replace("\n", "", $key);
echo"$key - $key2 - $regname";
Thanks






Bookmarks