Web请求+答案需要示例

时间:2014-03-01 17:41:10

标签: request

我有:

网站1 (主要网站)< - 获取请求并给出答案

网站2 (第二个网站)< - 提出请求并获得答案

需要如何运作:

网站2向网站1发送请求:

<?php
function Request($status) {
  #Request Here and send the status
  $status = "OK"
 }
?>

网站1获取状态为

的请求
<?php
#Get the status variable from other website
if ($status == "OK") {
echo "Status has been verified and is VALID!" #Send that back to the website 2
} else {
echo "Your status isn't valid!" #Send that back to the website 2
}
?>

我可以帮助充实这些网站的代码吗?

0 个答案:

没有答案