Escaping shell commands in PHP



Hi,

Skimming through docs on sysadmin.g.o, in PHP Guidelines under
Quoting, I think the third bullet "Don't try to quote shell
command lines. ... here is no PHP builtin that does the right
thing." is not adequate.  The following two PHP builtin functions
do exactly this:

  http://php.net/escapeshellarg
  http://php.net/escapeshellcmd


Or am I missing something?

--behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
	-- Dan Bern, "New American Language"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]