Index: phpdoc/de/Translators diff -u phpdoc/de/Translators:1.151 phpdoc/de/Translators:1.152 --- phpdoc/de/Translators:1.151 Fri Apr 13 06:24:24 2001 +++ phpdoc/de/Translators Sat Apr 14 02:37:26 2001 @@ -23,6 +23,7 @@ zimt Peter Petermann zimt <email protected> Urs Gehrig urs <email protected> Friedhelm Betz holliwell <email protected> + Thomas Schöfbeck Yin.Yang <email protected> Verzeichnis/Datei Übersetzer Status @@ -73,7 +74,7 @@ exec.xml Wolfgang Drews in Arbeit fdf.xml filepro.xml Martin Jansen fertig -filesystem.xml Wolfgang Drews fertig +filesystem.xml Wolfgang Drews + Thomas fertig (not sure) ftp.xml Thomas Schuermann fertig gettext.xml Sebastian Bergmann fertig http.xml Thomas Schuermann fertig (bis V. 1.13) Index: phpdoc/de/functions/filesystem.xml diff -u phpdoc/de/functions/filesystem.xml:1.19 phpdoc/de/functions/filesystem.xml:1.20 --- phpdoc/de/functions/filesystem.xml:1.19 Wed Jan 10 00:48:17 2001 +++ phpdoc/de/functions/filesystem.xml Sat Apr 14 02:37:27 2001 @@ -396,6 +396,33 @@ + + + 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 @@ -1298,6 +1325,62 @@ + + + fscanf + Parses input from a file according to a format + + + Description + + + mixed fscanf + int handle + string format + string + var1... + + + + + The function fscanf is similar to + sscanf, but it takes its input from a file + 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. + Otherwise, if optional parameters are passed, the function will + return the number of assigned values. The optional parameters + must be passed by reference. + + <function>Fscanf</function> Example + +$fp = fopen ("users.txt","r"); +while ($userinfo = fscanf ($fp, "%s\t%s\t%s\n")) { + list ($name, $profession, $countrycode) = $userinfo; + //... do something with the values +} +fclose($fp); + + + + users.txt + +javier argonaut pe +hiroshi sculptor jp +robert slacker us +luigi florist it + + + + + See also fread, fgets, + fgetss, sscanf, + printf, and sprintf. + + + + fseek @@ -1351,6 +1434,53 @@ + + + fstat + + Gets information about a file using an open file pointer + + + + Description + + + array fstat + int fp + + + + Gathers the statistics of the file opened by the file + pointer fp. This function is similar to the + stat function except that it operates + on an open file pointer instead of a filename. + + + Returns an array with the statistics of the file with the + following elements: + + device + inode + number of links + user id of owner + group id owner + device type if inode device * + size in bytes + time of last access + time of last modification + time of last change + blocksize for filesystem I/O * + number of blocks allocated + + * - only valid on systems supporting the st_blksize type--other + systems (i.e. Windows) return -1 + + The results of this function are cached. See + clearstatcache for more details. + + + + ftell @@ -1387,6 +1517,29 @@ + + + ftruncate + + Truncates a file to a given length. + + + + Description + + + int ftruncate + int fp + int size + + + + Takes the filepointer, fp, and truncates the file to length, size. + This function returns true on success and false on failure. + + + + fwrite @@ -1669,6 +1822,48 @@ + + + is_uploaded_file + Tells whether the file was uploaded via HTTP POST. + + + Description + + + bool is_uploaded_file + string filename + + + + + This function is available only in versions of PHP 3 after PHP + 3.0.16, and in versions of PHP 4 after 4.0.2. + + + + Returns true if the file named by filename was + uploaded via HTTP POST. This is useful to help ensure that a + malicious user hasn't tried to trick the script into working on + files upon which it should not be working--for instance, + /etc/passwd. + + + + This sort of check is especially important if there is any chance + that anything done with uploaded files could reveal their + contents to the user, or even to other users on the same + system. + + + + See also move_uploaded_file, and the section + Handling file uploads + for a simple usage example. + + + + link @@ -1767,6 +1962,117 @@ Siehe auch rmdir. + + + + + + + move_uploaded_file + Moves an uploaded file to a new location. + + + Description + + + bool move_uploaded_file + string filename + string destination + + + + + This function is available only in versions of PHP 3 after PHP + 3.0.16, and in versions of PHP 4 after 4.0.2. + + + + This function checks to ensure that the file designated by + filename is a valid upload file (meaning + that it was uploaded via PHP's HTTP POST upload mechanism). If + the file is valid, it will be moved to the filename given by + destination. + + + + If filename is not a valid upload file, + then no action will occur, and + move_uploaded_file will return + false. + + + + If filename is a valid upload file, but + cannot be moved for some reason, no action will occur, and + move_uploaded_file will return + false. Additionally, a warning will be issued. + + + + This sort of check is especially important if there is any chance + that anything done with uploaded files could reveal their + contents to the user, or even to other users on the same + system. + + + + See also is_uploaded_file, and the section + Handling file uploads + for a simple usage example. + + + + + + + + pathinfo + Returns information about a file path + + + Description + + + array pathinfo + string path + + + + pathinfo returns an associative array + containing information about path. The + following array elements are returned: + dirname, basename + and extension. + + + + <function>pathinfo</function> Example + +<?php + +$path_parts = pathinfo("/www/htdocs/index.html"); + +echo $path_parts["dirname"] . "\n"; +echo $path_parts["basename"] . "\n"; +echo $path_parts["extension"] . "\n"; + +?> + + + + + Would produce: + + +/www/htdocs +index.html +html + + + + + See also dirname, + basename and realpath.