PHP script to log to remote syslog based on user input