I was wondering if it is safe to have exec() enabled on my server. I would like to use it to execute a ping command inside a script to check to see if my servers are running. The ip's that are being passed into the exec() function are all hard coded into an array so it should be safe to run.
My worry is exec() could be injected somewhere else on my site via a self referencing form or into the database. Is this possible?