diff --git a/functions/filesystem.xml b/functions/filesystem.xml index 56023b64c5..42b0fd61f4 100644 --- a/functions/filesystem.xml +++ b/functions/filesystem.xml @@ -1,5 +1,5 @@ - + Filesystem functions Filesystem @@ -2348,7 +2348,7 @@ html fputs. - If an error occurs, returns &false;. + If an error occurs, returns &false;. @@ -2359,6 +2359,29 @@ $fp = popen ("/bin/ls", "r"); + + + If the command to be executed could not be found, a valid + resource is returned. This may seem odd, but makes sense; it + allows you to access any error message returned by the shell: + + +&1', 'r'); +echo "'$fp'; " . gettype($fp) . "\n"; +$read = fread($fp, 2096); +echo $read; +pclose($fp); +?> +]]> + + + + See also pclose.