Join Up!
104887 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousfopenfputsnext
Last updated: Sun, 27 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Finnish | German | Spanish

fpassthru

(PHP 3, PHP 4 )

fpassthru --  Vypíše všechna zbývající data v souboru

Popis

int fpassthru ( int fp)

Čte až do dosažení konce souboru specifikovaného deskriptorem a načtené přepisuje na standardní výstup.

Pokud nastane chyba, funkce fpassthru() vrací FALSE.

Deskriptor souboru musí být platný a musí ukazovat na soubor úspěšně otevřený pomocí fopen(), popen(), nebo fsockopen(). Až funkce fpassthru() ukončí čtení, zavře soubor (deskriptor fp tím ztrácí smysl).

Když chcete vypsat obsah souboru na standardní výstup (stdout), můžete použí funkci readfile(), která vás ušetří volání funkce fopen().

Viz také readfile(), fopen(), popen(), a fsockopen()

User Contributed Notes
fpassthru
add a note about notes
There are no user contributed notes for this page.
previousfopenfputsnext
Last updated: Sun, 27 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST