I have a script on a domain that does some calculations from the database on that domain, I access this script from another domain using the following code:
Code: Select all
$THE_STRING = file("http://domain/folder/php/get_data_calc.php?l=$l&d=$d&m=$m&y=$y");
$data_array = explode("|",$THE_STRING[0]);
print_r ($data_array);I have tried using $_GET in the get_data_calc.php file but that does not work, also tried using
$theurl = $_SERVER['REQUEST_URI']; then breaking up $theurl to get the variable values but using $_SERVER['REQUEST_URI'] just stops the script from running in this case.
Do I have any other options on this?