Please help php experts. how can I remotely call parameters? This post was last edited by kwdpx at 2014-02-22:52:42. this is a webpage on another website: & lt ;? Phprequire_once (header. php); $ qgsselect & nbsp; * & nbsp; from & nbsp; members & nbsp; wh ask the php experts for help. how to remotely call parameters?
This post was last edited by kwdpx at 11:52:42
This is a webpage on another website:
require_once("header.php");
$qgs="select * from 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 the parameter $ jd_bbs obtained by running the webpage on this website
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 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;
?>
The above is your modified
The following is an example of another website
$ Ch = curl_init ("website URL above ");
Curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, true );
Curl_setopt ($ ch, CURLOPT_BINARYTRANSFER, true );
$ RRes = curl_exec ($ ch); // obtain the result.
Curl_close ($ ch );