feof PHP Funktionen : PHP Übersicht : PHP Manual

feof

PHP Function feof / PHP Funktion feof

phplist » Webkatalog Script - Link Script » PHP Function Coder » feof
PHP Funktion
feof ( phplist Code 100% Relevanz )
Rubrik
Funktionen des Dateisystems
Kurzform
feof -- Prüft ob der Dateizeiger am Ende der Datei steht
Vorschau
...feof feof (PHP 3, PHP 4, PHP 5) feof -- Prüft, ob der Dateizeiger am Ende der Datei steht Beschreibung bool feof ( resource handle ) Gibt TRUE , falls der Dateizeiger am Ende der Datei steht oder ein Fehler aufgetreten ist, andernfalls FALSE . Der Dateizeiger muss gültig sein, d.h. die Datei, auf die gezeigt wird, muss zuvor mit ...
PHP Manual
[ feof php.net ]

PHP Funktion
fclose ( phplist Code 40% Relevanz )
Rubrik
Funktionen des Dateisystems
Kurzform
fclose -- Schließt einen offenen Dateizeiger
Vorschau
...die gezeigt wird muss zuvor mit fopen() oder fsockopen() geöffnet worden sein. Beispiel 1. Ein einfaches Beispiel für fclose() <?php $handle = fopen ( 'somefile.txt' , 'r' ); fclose ( $handle ); ?> diskfreespace feof...
PHP Manual
[ fclose php.net ]

PHP Funktion
fflush ( phplist Code 40% Relevanz )
Rubrik
Funktionen des Dateisystems
Kurzform
fflush -- Schreibt den Ausgabepuffer in eine Datei
Vorschau
... von dem Dateizeiger handle angegebene Datei. Gibt bei Erfolg TRUE , andernfalls FALSE . Der Dateizeiger muss gültig sein, und auf eine mittels fopen() , popen() , oder fsockopen() erfolgreich geöffnete Datei zeigen. feof fgetc...
PHP Manual
[ fflush php.net ]

PHP Funktion
fsockopen ( phplist Code 31% Relevanz )
Rubrik
Netzwerk Funktionen
Kurzform
fsockopen -- Stellt eine Internet- oder Unix-Domain-Socket-Verbindung her
Vorschau
...-Wert) für den Verbindungsaufbau (in Sekunden) zu setzen. Die Funktion fsockopen() gibt einen Zeiger auf eine Datei , der in Verbindung mit anderen Datei-Funktionen (wie z.B. fgets() , fgetss() , fputs() , fclose() , feof() ) gebraucht werden kann. Wenn der Aufruf der Funktion scheitert, gibt er FALSE / falsch und wenn die optionalen errno und errstr Argumente vorhanden sind, enthalten sie den aktuellen System-Fehler, der beim Aufruf der ...
PHP Manual
[ fsockopen php.net ]

PHP Funktion
Stream Functions ( phplist Code 20% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
...r\n" ); fwrite ( $sock , "\r\n" ); fwrite ( $sock , "$data \r\n " ); fwrite ( $sock , "\r\n" ); $headers = "" ; while ( $str = trim ( fgets ( $sock , 4096 ))) $headers .= "$str \n " ; echo "\n" ; $body = "" ; while (! feof ( $sock )) $body .= fgets ( $sock , 4096 ); fclose ( $sock ); ?> Beispiel 3. Writing data to a compressed file <?php /* Create a compressed file containing an arbitrarty string * File can be read back using compress...
PHP Manual
[ Stream Functions php.net ]

PHP Funktion
stream_socket_client ( phplist Code 17% Relevanz )
Rubrik
Stream Functions
Kurzform
stream_socket_client -- Open Internet or Unix domain socket connection
Vorschau
...() only applies while connecting the socket. stream_socket_client() returns a stream resource which may be used together with the other file functions (such as fgets() , fgetss() , fwrite() , fclose() , and feof() ). If the call fails, it will return FALSE and if the optional errno and errstr arguments are present they will be set to indicate the actual system level error that occurred in the system-level connect() call. If the ...
PHP Manual
[ stream_socket_client php.net ]

PHP Funktion
XML Parser Functions ( phplist Code 17% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... ( $xml_parser , "startElement" , "endElement" ); if (!( $fp = fopen ( $file , "r" ))) { die( "could not open XML input" ); } while ( $data = fread ( $fp , 4096 )) { if (! xml_parse ( $xml_parser , $data , feof ( $fp ))) { die( sprintf ( "XML error: %s at line %d" , xml_error_string ( xml_get_error_code ( $xml_parser )), xml_get_current_line_number ( $xml_parser ))); } } xml_parser_free ( $xml_parser ); ?> XML Tag Mapping ...
PHP Manual
[ XML Parser Functions php.net ]

PHP Funktion
mysqli_stmt_send_long_data ( phplist Code 13% Relevanz )
Rubrik
Verbesserte MySQL Erweiterung
Kurzform
mysqli_stmt_send_long_data (no version information might be only in CVS)stmt->send_long_data -- Send data in blocks
Vorschau
... 1. Object oriented style <?php $stmt = $mysqli -> prepare ( "INSERT INTO messages (message) VALUES (?)" ); $null = NULL ; $stmt -> bind_param ( "b" , $null ); $fp = fopen ( "messages.txt" , "r" ); while (! feof ( $fp )) { $stmt -> send_long_data ( 0 , fread ( $fp , 8192 )); } fclose ( $fp ); $stmt -> execute (); ?> Siehe auch mysqli_prepare() und mysqli_stmt_bind_param() . mysqli_stmt_result_metadata ...
PHP Manual
[ mysqli_stmt_send_long_data php.net ]

PHP Funktion
Funktionen des Dateisystems ( phplist Code 13% Relevanz )
Rubrik
Funktionsreferenz
Kurzform
-----
Vorschau
... -- Liefert den freien Speicherplatz in einem Verzeichnis disk_total_space -- Liefert die Gesamtgröße eines Verzeichnisses diskfreespace -- Ist ein Alias für disk_free_space() fclose -- Schließt einen offenen Dateizeiger feof -- Prüft, ob der Dateizeiger am Ende der Datei steht fflush -- Schreibt den Ausgabepuffer in eine Datei fgetc -- Liest das Zeichen, auf welches der Dateizeiger zeigt fgetcsv -- Liest eine Zeile von der Position des ...
PHP Manual
[ Funktionen des Dateisystems php.net ]

PHP Funktion
Zugriff auf entfernte Dateien ( phplist Code 12% Relevanz )
Rubrik
Features
Kurzform
-----
Vorschau
... werden. Beispiel 39-1. Den Titel einer entfernten Seite auslesen <?php $file = fopen ( "http://www.example.com/" , "r" ); if (! $file ) { echo "<p>Datei konnte nicht geöffnet werden.\n" ; exit; } while (! feof ( $file )) { $line = fgets ( $file , 1024 ); /* Funktioniert nur, wenn Titel und title-Tags in einer Zeile stehen */ if ( eregi ( "<title>(.*)</title>" , $line , $out )) { $title = $out [ 1 ]; break; } } fclose...
PHP Manual
[ Zugriff auf entfernte Dateien php.net ]

PHP Funktion
Streams Basics ( phplist Code 11% Relevanz )
Rubrik
Streams API for PHP Extension Authors
Kurzform
-----
Vorschau
... prototype looks more like read(2) fwrite php_stream_write The nmemb parameter is assumed to have a value of 1, so the prototype looks more like write(2) fseek php_stream_seek ftell php_stream_tell rewind php_stream_rewind feof php_stream_eof fgetc php_stream_getc fputc php_stream_putc fflush php_stream_flush puts php_stream_puts Same semantics as puts, NOT fputs fstat php_stream_stat Streams has a richer stat structure Streams API for PHP ...
PHP Manual
[ Streams Basics php.net ]

PHP Funktion
preg_replace_callback ( phplist Code 8% Relevanz )
Rubrik
Reguläre Ausdrücke Funktionen (Perl-kompatibel)
Kurzform
preg_replace_callback -- Sucht und ersetzt einen regulären Ausdruck unter Verwendung eines Callbacks
Vorschau
...create_function() <?php // ein Kommandozeilen-Filter im Unix-Stil zum Umwandeln von Groß- in // Kleinschreibung am Beginn eines Abschnitts $fp = fopen ( "php://stdin" , "r" ) or die( "kann stdin nicht lesen" ); while (! feof ( $fp )) { $zeile = fgets ( $fp ); $zeile = preg_replace_callback ( '|<p>\s*\w|' , create_function ( // hier sind entweder einfache Anführungszeichen nötig // oder alternativ die Maskierung aller $ als \$ '$treffer...
PHP Manual
[ preg_replace_callback php.net ]

PHP Funktion
ZipArchive::getStream ( phplist Code 8% Relevanz )
Rubrik
ZIP Funktionen (Lesezugriff)
Kurzform
ZipArchive::getStream -- Get a file handler to the entry defined by its name (read only).
Vorschau
...Beispiel 1. Get the entry contents with fread and store it. <?php $content = '' ; $z = new ZipArchive (); if ( $z -> open ( 'test.zip' )) { $fp = $z -> getStream ( 'test' ); if(! $fp ) exit( "failed\n" ); while (! feof ( $fp )) { $contents .= fread ( $fp , 2 ); } fclose ( $fp ); file_put_contents ( 't' , $contents ); echo "done.\n" ; } ?> Beispiel 2. Same as the previous example but with fopen and the zip stream wrapper <?php $fp...
PHP Manual
[ ZipArchive::getStream php.net ]

PHP Funktion
stream_wrapper_register ( phplist Code 7% Relevanz )
Rubrik
Stream Functions
Kurzform
stream_wrapper_register -- Register a URL wrapper implemented as a PHP class
Vorschau
... in the stream, or 0 if none could be stored. You must also update the read/write position of the stream by the number of bytes that were successfully written. bool stream_eof ( void ) This method is called in response to feof() calls on the stream. You should return TRUE if the read/write position is at the end of the stream and if no more data is available to be read, or FALSE otherwise. int stream_tell ( void ) This method is called in ...
PHP Manual
[ stream_wrapper_register php.net ]