Please do a favor to the PHP master, how to remotely invoke parameters

Source: Internet
Author: User
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);
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.