I'm executing a php function via the PHP exec()
function but it seems to only pass through 1 variable at time.
$url = "http://domain.co/test.php?phone=123&msg=testing"
exec('wget '.$url);
Within test.php file I have
$msg = "msg =".$_GET["msg"]." number=".$_GET["phone"];
mail('me@gmail.com', 'Working?', $msg);
I get an email which returns phone variable only.
But if I change the url as follows
$url = "http://domain.co/test.php?msg=testing&phone=123"
I get msg
but not phone
? Any ideas on what is causing this strange behavior?