Escaping shell commands in PHP


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:

Or am I missing something?


"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]