From a923054db92044adcebad32bb8706905185a8191 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 24 Apr 2003 23:47:12 +0000 Subject: [PATCH] Show defaults for context options, clear up documentation on opening ftp:// URLs for writting, and add note for appending. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@124528 c90b9560-bf6c-de11-be94-00142212c4b1 --- appendices/wrappers.xml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/appendices/wrappers.xml b/appendices/wrappers.xml index 23c9a174de..b2f8b42045 100644 --- a/appendices/wrappers.xml +++ b/appendices/wrappers.xml @@ -1,5 +1,5 @@ - + List of Supported Protocols/Wrappers @@ -58,14 +58,15 @@ Name Usage + Default method GET or POST - (defaults to GET). + GET header @@ -74,6 +75,7 @@ User-agent:, Host:, and Authentication:. + content @@ -81,6 +83,7 @@ Additional data to be sent after the headers. Typically used with POST requests. + @@ -107,10 +110,21 @@ You can open files for either reading or writing, but not both simultaneously. If the remote file already exists on the ftp - server and you attempt to open it for writing, the connection - will fail. If you need to update existing files over ftp, - use ftp_connect. + server and you attempt to open it for writing but have not specified + the context option overwrite, the connection + will fail. If you need to overwrite existing files over ftp, + specify the overwrite option in the context + and open the file for writting. Alternatively, you can + use the FTP extension. + + Appending + + As of PHP 5.0 files may be appended via the + ftp:// url wrapper. In prior versions, attempting + to append to a file via ftp:// will result in failure. + + ftps:// was introduced in PHP 4.3. It is the same as ftp://, @@ -131,6 +145,7 @@ Name Usage + Default @@ -138,8 +153,8 @@ overwrite Allow overwritting of already existing files on remote server. - Disabled by default. + &false; (Disabled)