From bb7014511982c71d84680c18b368566bcae0821d Mon Sep 17 00:00:00 2001 From: "Jesus M. Castagnetto" Date: Wed, 1 Nov 2000 21:55:46 +0000 Subject: [PATCH] documentation of fflush git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@35016 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/filesystem.xml | 95 ++++++++++++++++++++++++++-------------- 1 file changed, 61 insertions(+), 34 deletions(-) diff --git a/functions/filesystem.xml b/functions/filesystem.xml index b10f6af8ec..bbeb149e11 100644 --- a/functions/filesystem.xml +++ b/functions/filesystem.xml @@ -382,6 +382,33 @@ $df = diskfreespace("/"); // $df contains the number of bytes + + + fflush + Flushes the output to a file + + + Description + + + int fflush + int fp + + + + This function forces a write of all buffered output to the + to the resource pointed to by the file handle + fp. Returns true if succesful, false + otherwise. + + + The file pointer must be valid, and must point to a file + successfully opened by fopen, + popen, or fsockopen. + + + + fgetc @@ -959,30 +986,30 @@ $fcontents = join ('', file ('http://www.php.net')); - To acquire a shared lock (reader), set - operation to LOCK_SH (set to 1 prior to - PHP 4.0.1). + To acquire a shared lock (reader), set + operation to LOCK_SH (set to 1 prior to + PHP 4.0.1). - To acquire an exclusive lock (writer), set - operation to LOCK_EX (set to 2 prior to - PHP 4.0.1). + To acquire an exclusive lock (writer), set + operation to LOCK_EX (set to 2 prior to + PHP 4.0.1). - To release a lock (shared or exclusive), set - operation to LOCK_UN (set to 3 prior to - PHP 4.0.1). + To release a lock (shared or exclusive), set + operation to LOCK_UN (set to 3 prior to + PHP 4.0.1). - If you don't want flock to block while - locking, add LOCK_NB (4 prior to PHP 4.0.1) to - operation. + If you don't want flock to block while + locking, add LOCK_NB (4 prior to PHP 4.0.1) to + operation. @@ -1068,42 +1095,42 @@ $fcontents = join ('', file ('http://www.php.net')); - 'r' - Open for reading only; place the file pointer at the - beginning of the file. + 'r' - Open for reading only; place the file pointer at the + beginning of the file. - 'r+' - Open for reading and writing; place the file pointer at - the beginning of the file. + 'r+' - Open for reading and writing; place the file pointer at + the beginning of the file. - 'w' - Open for writing only; place the file pointer at the - beginning of the file and truncate the file to zero length. - If the file does not exist, attempt to create it. + 'w' - Open for writing only; place the file pointer at the + beginning of the file and truncate the file to zero length. + If the file does not exist, attempt to create it. - 'w+' - Open for reading and writing; place the file pointer at - the beginning of the file and truncate the file to zero - length. If the file does not exist, attempt to create it. + 'w+' - Open for reading and writing; place the file pointer at + the beginning of the file and truncate the file to zero + length. If the file does not exist, attempt to create it. - 'a' - Open for writing only; place the file pointer at the end - of the file. If the file does not exist, attempt to create - it. + 'a' - Open for writing only; place the file pointer at the end + of the file. If the file does not exist, attempt to create + it. - 'a+' - Open for reading and writing; place the file pointer at - the end of the file. If the file does not exist, attempt to - create it. + 'a+' - Open for reading and writing; place the file pointer at + the end of the file. If the file does not exist, attempt to + create it. @@ -2392,9 +2419,9 @@ $tmpfname = tempnam ("/tmp", "FOO"); - - See also tmpfile. - + + See also tmpfile. + @@ -2442,9 +2469,9 @@ $tmpfname = tempnam ("/tmp", "FOO"); int touch string filename int - - time - + + time +