I'm trying to work out how to get variables from php into a script because I want to create a user registration page so users can register and the php will call a script and send the variables to it.
Specifically this line i'm having trouble with (its in the php page):
PHP:
$results = bash /home/*******/public_html/add_user $login '$pwd'
;
add_user.sh:
#!/bin/bash
adduser -u "$1" -p "$2" -g users -s /bin/bash