0

I am working this code over here:


 fopen ("tmp/wpa_supplicant.conf", "w+");
  echo "network={
ssid="$two_ssid"
psk="$two_password"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
;}
shell_exec("cp /tmp/wpa_supplicant.conf"  /etc/wpa_supplicant/wpa_supplicant.conf);

}

I know it isn't the best, but hey, I am a newbie...and I am going mad over the error:

Syntax error, unexpected '$two_ssid' (T_VARIABLE), expecting ';' or ','

Please help, as I am really, really going mad over here, thanks!

0 Answers0