Please do a favor to the PHP master, how to remotely invoke parameters?
This post was last edited by kwdpx on 2014-02-22 11:52:42
This is the Web page on another site:
Require_once ("header.php");
$qgs = "SELECT * from the members where Username= ' $user '";
$rgs = $obj _db->simplequery ($QGS);
$ngs =mysql_num_rows ($rgs);
if ($ngs = = "1") {
$JD _bbs= "1";
}else{
$JD _bbs= "0";
}
?>
I want to call that website on this website to run the parameters of the Web page $jd_bbs
File_get_contents ("http://www.xxx.com/b/index.php?user= $user");
if ($jd _bbs!= "1") {
echo "$jd _bbs";//how do I get it?
Exit ();
}
?>
------Solution--------------------
Require_once ("header.php");
$qgs = "SELECT * from the members where Username= ' $user '";
$rgs = $obj _db->simplequery ($QGS);
$ngs =mysql_num_rows ($rgs);
$jd _bbs = 0;
if ($ngs = = "1") {
$JD _bbs= "1";
}else{
$JD _bbs= "0";
}
echo $jd _bbs;
?>
Above is to modify your
Here's another site to get
$ch = curl_init ("website URL above");
curl_setopt ($ch, Curlopt_returntransfer, true);
curl_setopt ($ch, Curlopt_binarytransfer, true);
$rRes = curl_exec ($ch);//Get Results
Curl_close ($ch);