note 11317 deleted from function.exec by cmb

From: Date: Sun, 24 Nov 2019 08:38:51 +0000
Subject: note 11317 deleted from function.exec by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213192@lists.php.net to get a copy of this message
Note Submitter: bens_nospam at benjamindsmith dot com ---- ON A LINUX SYSTEM: Note that the exec() function calls the program DIRECTLY without any intermediate shell. Compare this with the backtick operator that executes a shell which then calls the program you ask for. This makes the most difference when you are trying to pass complex variables to the program you are trying to execute - the shell can interpret your parameters before passing them thru to the program being called - making a dog's breakfast of your input stream. Remember: exec() calls the program DIRECTLY - the backtick (and, I THINK, the system() call) execute the program thru a shell. -Ben

« previous php.notes (#213192) next »