include A server .php file in B server .php file and get variable values from A server Php File
I'm trying to call PHP file which is located in another server which is connected with RPG(Report Program Generator, AS400). I would like to call that PHP file from my web server and would like to have access to variable and functions.
I tried Include but not working
I would like to call .PHP file which in RPG side with parameter.
A.php
 <?php
  include("http://10.1.1.12/a/file.php?email=aaa@a.com&name=abc");
  echo $a; //values from file.php
  ?>
file.php
<?php
 $email = $_REQUEST['email'];
 $name = $_REQUEST['name'];
 $a = "testing";
 echo $a;
 ?>
 
     
     
    