From d43ee1e467457ec6fe08bc6d2ccbeb7d1c377895 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Sun, 14 Jul 2002 18:56:44 +0000 Subject: [PATCH] * Briefly document fourth zcontext parameter (does not yet close bug #17784) * See also file(), fgets(), file_exists(), and is_readable(). * We mention 4.3.0 w/o stating it's not yet released * Minor textual changes git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@88682 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/fopen.xml | 30 +++++++++++++++++------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/reference/filesystem/functions/fopen.xml b/reference/filesystem/functions/fopen.xml index 3e2501a669..c557f155fb 100644 --- a/reference/filesystem/functions/fopen.xml +++ b/reference/filesystem/functions/fopen.xml @@ -1,5 +1,5 @@ - + @@ -13,6 +13,7 @@ stringfilename stringmode intuse_include_path + resourcezcontext If filename begins with "http://" (not @@ -23,17 +24,16 @@ request in order to handle name-based virtual hosts. - 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. + As of PHP 4.3.0, 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 response header you need to be using PHP 4.0.5 or later; The headers will be stored in the $http_response_header variable. - As of PHP 4.3.0 (not yet released), the header information can - be retrieved using the file_get_wrapper_data. + As of PHP 4.3.0, the header information can be retrieved using + the file_get_wrapper_data. HTTP connections are read-only; you cannot write data or copy @@ -123,19 +123,25 @@ - You can use the optional third parameter and set it to "1", if - you want to search for the file in the include_path, too. + The optional third use_include_path parameter + can be set to '1' or &true; if you want to search for the file in + the include_path, too. + + + The optional fourth zcontext is used for + specifying tuning parameters and callbacks. <function>fopen</function> example ]]> @@ -152,14 +158,20 @@ $fp = fopen ("ftp://user:password@example.com/", "w"); ]]> See also fclose, + fgets, fsockopen, + file, + file_exists, + is_readable, socket_set_timeout, and popen.