07-26-2023, 09:01 PM
I need to pass 2 variables from a WHMCS PHP hook script to another shell script as follows : (variables are `$domain` and `$email` )
$output = shell_exec('/scripts/clone-wp2.sh $Email $domain');
The script get executed but the variables are not passed to the shell although they have values,in /scripts/clone-wp2.sh $1 and $2 have null values.
How do I go about doing this?
$output = shell_exec('/scripts/clone-wp2.sh $Email $domain');
The script get executed but the variables are not passed to the shell although they have values,in /scripts/clone-wp2.sh $1 and $2 have null values.
How do I go about doing this?