From 1afdc77d297fdbd890744cfbba53056649c21d7e Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 16 Mar 2002 17:02:35 +0000 Subject: [PATCH] More docs for streams related changes. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@73614 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/filesystem.xml | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/functions/filesystem.xml b/functions/filesystem.xml index ba122e3c7b..ca15af5daa 100644 --- a/functions/filesystem.xml +++ b/functions/filesystem.xml @@ -1,5 +1,5 @@ - + Filesystem functions Filesystem @@ -233,6 +233,13 @@ if (!copy($file, $file.'.bak')) { + + + As of PHP 4.3.0, both source and + dest may be URLs if the "fopen wrappers" + have been enable. See fopen for more details. + + If the destination file already exists, it will be overwritten. @@ -672,6 +679,27 @@ fclose ($fd); + + + file_get_contents + Reads entire file into a string + + + Description + + stringfile_get_contents + stringfilename + intuse_include_path + + + Identical to readfile, except that + file_get_contents returns the file in a string. + + ¬e.bin-safe; + &tip.fopen-wrapper; + + + file @@ -720,6 +748,12 @@ $fcontents = implode ('', file ('http://www.php.net/')); + + + As of PHP 4.3.0 you can use file_get_contents to + return the contents of a file as a string in a binary safe manner. + + ¬e.not-bin-safe; &tip.fopen-wrapper; @@ -1184,6 +1218,7 @@ $fcontents = implode ('', file ('http://www.php.net/')); As of PHP 4.3.0 (not yet released), if you have compiled in support for OpenSSL, you may use "https://" to open an HTTP connection over SSL. + Note that the file pointer allows you to retrieve only the body of the response; to retrieve the HTTP