From b46f2d8e825d60f01e6ae32df2343d5d1689e680 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Sat, 19 May 2001 20:39:20 +0000 Subject: [PATCH] - corrected case for functions so references work. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@47886 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/exec.xml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/functions/exec.xml b/functions/exec.xml index fdacb44c29..7114a0e7be 100644 --- a/functions/exec.xml +++ b/functions/exec.xml @@ -16,7 +16,7 @@ - EscapeShellArg adds single quotes around a string + escapeshellarg adds single quotes around a string and quotes/escapes any existing single quotes allowing you to pass a string directly to a shell function and having it be treated as a single safe argument. This function should be used to escape individual @@ -54,7 +54,7 @@ system("ls ".EscapeShellArg($dir)) - EscapeShellCmd escapes any characters in a + escapeshellcmd escapes any characters in a string that might be used to trick a shell command into executing arbitrary commands. This function should be used to make sure that any data coming from user input is escaped before this data @@ -127,7 +127,7 @@ system("touch \"/tmp/$f\"; ls -l \"/tmp/$f\""); // and here we do, so we use quo Note that if you are going to allow data coming from user input to be passed to this function, then you should be using - EscapeShellCmd to make sure that users + escapeshellcmd to make sure that users cannot trick the system into executing arbitrary commands. @@ -139,8 +139,8 @@ system("touch \"/tmp/$f\"; ls -l \"/tmp/$f\""); // and here we do, so we use quo See also system, - PassThru, popen, - EscapeShellCmd, and the passthru, popen, + escapeshellcmd, and the backtick operator. @@ -166,12 +166,12 @@ system("touch \"/tmp/$f\"; ls -l \"/tmp/$f\""); // and here we do, so we use quo The passthru function is similar to the - Exec function in that it executes a + exec function in that it executes a command. If the return_var argument is present, the return status of the Unix command will be placed here. This function - should be used in place of Exec or - System when the output from the Unix command + should be used in place of exec or + system when the output from the Unix command is binary data which needs to be passed directly back to the browser. A common use for this is to execute something like the pbmplus utilities that can output an image stream directly. By @@ -187,7 +187,7 @@ system("touch \"/tmp/$f\"; ls -l \"/tmp/$f\""); // and here we do, so we use quo See also exec, system, - popen, EscapeShellCmd, + popen, escapeshellcmd, and the backtick operator. @@ -211,7 +211,7 @@ system("touch \"/tmp/$f\"; ls -l \"/tmp/$f\""); // and here we do, so we use quo - System is just like the C version of the + system is just like the C version of the function in that it executes the given command and outputs the result. If a variable is provided as the second argument, then the return @@ -221,7 +221,7 @@ system("touch \"/tmp/$f\"; ls -l \"/tmp/$f\""); // and here we do, so we use quo Note, that if you are going to allow data coming from user input to be passed to this function, then you should be using the - EscapeShellCmd function to make sure that + escapeshellcmd function to make sure that users cannot trick the system into executing arbitrary commands. @@ -233,7 +233,7 @@ system("touch \"/tmp/$f\"; ls -l \"/tmp/$f\""); // and here we do, so we use quo program ends. - The System call also tries to automatically + The system call also tries to automatically flush the web server's output buffer after each line of output if PHP is running as a server module. @@ -244,12 +244,12 @@ system("touch \"/tmp/$f\"; ls -l \"/tmp/$f\""); // and here we do, so we use quo If you need to execute a command and have all the data from the command passed directly back without any interference, use the - PassThru function. + passthru function. See also exec, - PassThru, popen, - EscapeShellCmd, and the passthru, popen, + escapeshellcmd, and the backtick operator.