Location: PHPKode > scripts > Sell Downloads Nex > button/function.php
<?php
function postinsert($testing,$sitename,$email,$name,$price,$currency,$dlfile) {
$url = "http://www.sdnex.com/test/check.php?regist=1&testing=$testing&sitename=$sitename&email=$email&name=$name&price=$price&currency=$currency&dlfile=$dlfile";
$ping = parse_url($url);
$ping['query'] = "?".$ping['query'];
$head  = "GET ".$ping['path'].$ping['query']." HTTP/1.0\r\n";
$head .= "Host: ".$ping['host']."\r\n";
$head .= "\r\n";
if (!$ping['port']) {
$ping['port'] = 80;
}
$fp = @fsockopen($ping['host'], $ping['port'], $errno, $errstr, 10);
if ($fp) {
fputs ($fp, $head);
$res = "";
while(!feof($fp)) {
$res = $res . fgets($fp, 4096);
}
fclose($fp);
list($head, $body) = split("\r\n\r\n", $res, 2 );
return $body;
}
}
?>
Return current item: Sell Downloads Nex