views:

132

answers:

2

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?

A: 

do you mean to sanitize variable http://php.net/filter_var ?

good tutorial

http://www.phpro.org/tutorials/Filtering-Data-with-PHP.html

Haim Evgi
+4  A: 

Do you mean escapeshellcmd and escapeshellarg?

Paolo Bergantino