I am trying to run a shell command from php to update a dns ip address but it doesn't work and I don't see why it's not working.
$ip = $_POST['ipAddress'];
$exc =shell_exec("curl -L https://dynupdate.no-ip.com/[email protected]&password=sfddeaeZZ.&hostname=example.sytes.net&ip=$ip”");
when I type directly in the console
curl -L https://dynupdate.no-ip.com/[email protected]&password=sfddeaeZZ.&hostname=example.sytes.net&ip=$ip”"
it works but with php it doesn't.
echo exec("$command",$output,$return_code); echo $output; echo $return_code;