fixed the variable so it works right and also set the script to echo the output of the php exec command.