Sanitizing PHP input to ping program

Go To


I would like to interface a php page to the linux command line program ping.

I realize that there are sanitation issues. Is there a builtin library or function that can take care of everything, or will I have to rely on regex parsers?

2009-06-16 08:30
by Unknown


Do you mean escapeshellcmd and escapeshellarg?

2009-06-16 08:35
by Paolo Bergantino


do you mean to sanitize variable ?

good tutorial

2009-06-16 08:33
by Haim Evgi