Index: phpdoc/en/reference/filesystem/functions/fclose.xml diff -u phpdoc/en/reference/filesystem/functions/fclose.xml:1.4 phpdoc/en/reference/filesystem/functions/fclose.xml:1.5 --- phpdoc/en/reference/filesystem/functions/fclose.xml:1.4 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fclose.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,10 +10,10 @@ Description boolfclose - resourcefp + resourcehandle - The file pointed to by fp is closed. + The file pointed to by handle is closed. &return.success; @@ -30,9 +30,9 @@ ]]> Index: phpdoc/en/reference/filesystem/functions/feof.xml diff -u phpdoc/en/reference/filesystem/functions/feof.xml:1.3 phpdoc/en/reference/filesystem/functions/feof.xml:1.4 --- phpdoc/en/reference/filesystem/functions/feof.xml:1.3 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/feof.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,7 +10,7 @@ Description boolfeof - resourcefp + resourcehandle Returns &true; if the file pointer is at EOF or an error occurs; Index: phpdoc/en/reference/filesystem/functions/fflush.xml diff -u phpdoc/en/reference/filesystem/functions/fflush.xml:1.4 phpdoc/en/reference/filesystem/functions/fflush.xml:1.5 --- phpdoc/en/reference/filesystem/functions/fflush.xml:1.4 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fflush.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,11 +10,11 @@ Description boolfflush - resourcefp + resourcehandle This function forces a write of all buffered output to the - resource pointed to by the file handle fp. + resource pointed to by the file handle handle. Returns &true; if successful, &false; otherwise. Index: phpdoc/en/reference/filesystem/functions/fgetc.xml diff -u phpdoc/en/reference/filesystem/functions/fgetc.xml:1.3 phpdoc/en/reference/filesystem/functions/fgetc.xml:1.4 --- phpdoc/en/reference/filesystem/functions/fgetc.xml:1.3 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fgetc.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,7 +10,7 @@ Description stringfgetc - resourcefp + resourcehandle Returns a string containing a single character read from the Index: phpdoc/en/reference/filesystem/functions/fgetcsv.xml diff -u phpdoc/en/reference/filesystem/functions/fgetcsv.xml:1.6 phpdoc/en/reference/filesystem/functions/fgetcsv.xml:1.7 --- phpdoc/en/reference/filesystem/functions/fgetcsv.xml:1.6 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fgetcsv.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,7 +10,7 @@ Description arrayfgetcsv - resourcefp + resourcehandle intlength stringdelimiter stringenclosure @@ -31,7 +31,7 @@ - The fp parameter must be a valid file pointer to a file + The handle parameter must be a valid file pointer to a file successfully opened by fopen, popen, or fsockopen. @@ -57,8 +57,8 @@ $num fields in line $row:
\n"; $row++; @@ -66,7 +66,7 @@ print $data[$c] . "
\n"; } } -fclose ($fp); +fclose ($handle); ?> ]]> Index: phpdoc/en/reference/filesystem/functions/fgets.xml diff -u phpdoc/en/reference/filesystem/functions/fgets.xml:1.5 phpdoc/en/reference/filesystem/functions/fgets.xml:1.6 --- phpdoc/en/reference/filesystem/functions/fgets.xml:1.5 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fgets.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,7 +10,7 @@ Description stringfgets - resourcefp + resourcehandle intlength @@ -42,12 +42,12 @@ Reading a file line by line Index: phpdoc/en/reference/filesystem/functions/fgetss.xml diff -u phpdoc/en/reference/filesystem/functions/fgetss.xml:1.4 phpdoc/en/reference/filesystem/functions/fgetss.xml:1.5 --- phpdoc/en/reference/filesystem/functions/fgetss.xml:1.4 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fgetss.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,7 +10,7 @@ Description stringfgetss - resourcefp + resourcehandle intlength stringallowable_tags Index: phpdoc/en/reference/filesystem/functions/flock.xml diff -u phpdoc/en/reference/filesystem/functions/flock.xml:1.4 phpdoc/en/reference/filesystem/functions/flock.xml:1.5 --- phpdoc/en/reference/filesystem/functions/flock.xml:1.4 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/flock.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,7 +10,7 @@ Description boolflock - resourcefp + resourcehandle intoperation int&wouldblock @@ -20,7 +20,7 @@ same way of locking or it will not work). - flock operates on fp + flock operates on handle which must be an open file pointer. operation is one of the following values: Index: phpdoc/en/reference/filesystem/functions/fopen.xml diff -u phpdoc/en/reference/filesystem/functions/fopen.xml:1.6 phpdoc/en/reference/filesystem/functions/fopen.xml:1.7 --- phpdoc/en/reference/filesystem/functions/fopen.xml:1.6 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fopen.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -121,10 +121,10 @@ email protected>/", "w"); +$handle = fopen ("/home/rasmus/file.txt", "r"); +$handle = fopen ("/home/rasmus/file.gif", "wb"); +$handle = fopen ("http://www.example.com/", "r"); +$handle = fopen ("ftp://user:password <email protected>/", "w"); ?> ]]> @@ -143,7 +143,7 @@ ]]> Index: phpdoc/en/reference/filesystem/functions/fpassthru.xml diff -u phpdoc/en/reference/filesystem/functions/fpassthru.xml:1.4 phpdoc/en/reference/filesystem/functions/fpassthru.xml:1.5 --- phpdoc/en/reference/filesystem/functions/fpassthru.xml:1.4 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fpassthru.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,7 +10,7 @@ Description intfpassthru - resourcefp + resourcehandle Reads to EOF on the given file pointer from the current position and @@ -19,7 +19,7 @@ If an error occurs, fpassthru returns &false;. Otherwise, fpassthru returns - the number of characters read from fp + the number of characters read from handle and passed through to the output. @@ -29,7 +29,7 @@ rewind to reset the file pointer to the beginning of the file if you have already written data to the file. The file is closed when fpassthru is done reading it (leaving - fp useless). + handle useless). If you just want to dump the contents of a file to the output buffer, Index: phpdoc/en/reference/filesystem/functions/fputs.xml diff -u phpdoc/en/reference/filesystem/functions/fputs.xml:1.3 phpdoc/en/reference/filesystem/functions/fputs.xml:1.4 --- phpdoc/en/reference/filesystem/functions/fputs.xml:1.3 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fputs.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,7 +10,7 @@ Description intfputs - resourcefp + resourcehandle stringstr intlength Index: phpdoc/en/reference/filesystem/functions/fread.xml diff -u phpdoc/en/reference/filesystem/functions/fread.xml:1.5 phpdoc/en/reference/filesystem/functions/fread.xml:1.6 --- phpdoc/en/reference/filesystem/functions/fread.xml:1.5 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fread.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,13 +10,13 @@ Description stringfread - resourcefp + resourcehandle intlength fread reads up to length bytes from the file pointer - referenced by fp. Reading stops when + referenced by handle. Reading stops when length bytes have been read or EOF (end of file) reached, whichever comes first. @@ -27,9 +27,9 @@ ]]> @@ -48,9 +48,9 @@ ]]> Index: phpdoc/en/reference/filesystem/functions/fscanf.xml diff -u phpdoc/en/reference/filesystem/functions/fscanf.xml:1.6 phpdoc/en/reference/filesystem/functions/fscanf.xml:1.7 --- phpdoc/en/reference/filesystem/functions/fscanf.xml:1.6 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fscanf.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,14 +10,14 @@ Description mixedfscanf - resourcefp + resourcehandle stringformat stringvar1 The function fscanf is similar to sscanf, but it takes its input from a file - associated with fp and interprets the + associated with handle and interprets the input according to the specified format. If only two parameters were passed to this function, the values parsed will be returned as an array. @@ -35,12 +35,12 @@ <function>fscanf</function> Example Index: phpdoc/en/reference/filesystem/functions/fseek.xml diff -u phpdoc/en/reference/filesystem/functions/fseek.xml:1.3 phpdoc/en/reference/filesystem/functions/fseek.xml:1.4 --- phpdoc/en/reference/filesystem/functions/fseek.xml:1.3 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fseek.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,13 +10,13 @@ Description intfseek - resourcefp + resourcehandle intoffset intwhence Sets the file position indicator for the file referenced by - fp.The new position, measured in bytes + handle.The new position, measured in bytes from the beginning of the file, is obtained by adding offset to the position specified by whence, whose values are defined as Index: phpdoc/en/reference/filesystem/functions/fstat.xml diff -u phpdoc/en/reference/filesystem/functions/fstat.xml:1.3 phpdoc/en/reference/filesystem/functions/fstat.xml:1.4 --- phpdoc/en/reference/filesystem/functions/fstat.xml:1.3 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fstat.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,7 +10,7 @@ Description arrayfstat - resourcefp + resourcehandle Gathers the statistics of the file opened by the file Index: phpdoc/en/reference/filesystem/functions/ftell.xml diff -u phpdoc/en/reference/filesystem/functions/ftell.xml:1.3 phpdoc/en/reference/filesystem/functions/ftell.xml:1.4 --- phpdoc/en/reference/filesystem/functions/ftell.xml:1.3 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/ftell.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,7 +10,7 @@ Description intftell - resourcefp + resourcehandle Returns the position of the file pointer referenced by fp; i.e., Index: phpdoc/en/reference/filesystem/functions/ftruncate.xml diff -u phpdoc/en/reference/filesystem/functions/ftruncate.xml:1.3 phpdoc/en/reference/filesystem/functions/ftruncate.xml:1.4 --- phpdoc/en/reference/filesystem/functions/ftruncate.xml:1.3 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/ftruncate.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,11 +10,11 @@ Description boolftruncate - resourcefp + resourcehandle intsize - Takes the filepointer, fp, and truncates the file to + Takes the filepointer, handle, and truncates the file to length, size. This function returns &true; on success and &false; on failure. Index: phpdoc/en/reference/filesystem/functions/fwrite.xml diff -u phpdoc/en/reference/filesystem/functions/fwrite.xml:1.6 phpdoc/en/reference/filesystem/functions/fwrite.xml:1.7 --- phpdoc/en/reference/filesystem/functions/fwrite.xml:1.6 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/fwrite.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,14 +10,14 @@ Description intfwrite - resourcefp + resourcehandle stringstring intlength fwrite writes the contents of string to the file stream pointed to by - fp. If the length + handle. If the length argument is given, writing will stop after length bytes have been written or the end of string is reached, whichever comes @@ -56,20 +56,20 @@ // In our example we're opening $filename in append mode. // The file pointer is at the bottom of the file hence // that's where $somecontent will go when we fwrite() it. - if (!$fp = fopen($filename, 'a')) { + if (!$handle = fopen($filename, 'a')) { print "Cannot open file ($filename)"; exit; } // Write $somecontent to our opened file. - if (!fwrite($fp, $somecontent)) { + if (!fwrite($handle, $somecontent)) { print "Cannot write to file ($filename)"; exit; } print "Success, wrote ($somecontent) to file ($filename)"; - fclose($fp); + fclose($handle); } else { print "The file $filename is not writable"; Index: phpdoc/en/reference/filesystem/functions/pclose.xml diff -u phpdoc/en/reference/filesystem/functions/pclose.xml:1.3 phpdoc/en/reference/filesystem/functions/pclose.xml:1.4 --- phpdoc/en/reference/filesystem/functions/pclose.xml:1.3 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/pclose.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,7 +10,7 @@ Description intpclose - resourcefp + resourcehandle Closes a file pointer to a pipe opened by Index: phpdoc/en/reference/filesystem/functions/popen.xml diff -u phpdoc/en/reference/filesystem/functions/popen.xml:1.4 phpdoc/en/reference/filesystem/functions/popen.xml:1.5 --- phpdoc/en/reference/filesystem/functions/popen.xml:1.4 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/popen.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -39,7 +39,7 @@ ]]> @@ -57,11 +57,11 @@ error_reporting(E_ALL); /* Add redirection so we can get stderr. */ -$fp = popen('/path/to/spooge 2>&1', 'r'); -echo "'$fp'; " . gettype($fp) . "\n"; -$read = fread($fp, 2096); +$handle = popen('/path/to/spooge 2>&1', 'r'); +echo "'$handle'; " . gettype($handle) . "\n"; +$read = fread($handle, 2096); echo $read; -pclose($fp); +pclose($handle); ?> ]]> Index: phpdoc/en/reference/filesystem/functions/rewind.xml diff -u phpdoc/en/reference/filesystem/functions/rewind.xml:1.4 phpdoc/en/reference/filesystem/functions/rewind.xml:1.5 --- phpdoc/en/reference/filesystem/functions/rewind.xml:1.4 Sat Jan 11 13:20:22 2003 +++ phpdoc/en/reference/filesystem/functions/rewind.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -10,7 +10,7 @@ Description intrewind - resourcefp + resourcehandle Sets the file position indicator for fp to the beginning of the Index: phpdoc/en/reference/filesystem/functions/tempnam.xml diff -u phpdoc/en/reference/filesystem/functions/tempnam.xml:1.2 phpdoc/en/reference/filesystem/functions/tempnam.xml:1.3 --- phpdoc/en/reference/filesystem/functions/tempnam.xml:1.2 Wed Apr 17 02:38:10 2002 +++ phpdoc/en/reference/filesystem/functions/tempnam.xml Sun Jan 12 21:54:28 2003 @@ -1,5 +1,5 @@ - + @@ -38,9 +38,9 @@