note 11317 added to exec

From: Date: Thu, 15 Feb 2001 18:19:15 +0000
Subject: note 11317 added to exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-11115@lists.php.net to get a copy of this message
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 http://www.php.net/manual/en/function.exec.php

« previous php.notes (#11115) next »