Re: PHP Help Needed - Noobie
Posted: Wed Aug 13, 2008 12:58 pm
The domain doesn't really make a BIG difference but then again if you really wanna see the whole thing, then it's here...
I have already basically posted everything but if you think there's more, then be my guest
I have already basically posted everything but if you think there's more, then be my guest
Code: Select all
<?PHP
function Requery(){
$query = "http://www.mobile88.com/epayment/enquiry.asp?MerchantCode=" .
$MerchantCode . "&RefNo=" . $RefNo . "&Amount=" . $Amount;
$url = parse_url($query);
$host = $url["host"];
$path = $url["path"] . "?" . $url["query"];
$timeout = 1;
$fp = fsockopen ($host, 80, $errno, $errstr, $timeout);
if ($fp) {
fputs ($fp, "GET $path HTTP/1.0\nHost: " . $host . "\n\n");
while (!feof($fp)) {
$buf .= fgets($fp, 128);
}
$lines = split("\n", $buf);
$Result = $lines[count($lines)-1];
fclose($fp);
} else {
# enter error handing code here
}
return $Result;
}
?>