PHP-manual | ||
---|---|---|
Föregående | Nästa |
Reads a file and writes it to the output buffer.
Returns the number of bytes read from the file. If an error occurs, FALSE is returned and unless the function was called as @readfile(), an error message is printed.
Tips: Du kan anv�nda en URL som filnamn till den h�r funktionen om direktivet fopen wrappers �r p�slaget. Se fopen() f�r fler detaljer kring hur du specificerar filnamnet och f�r en Appendix Mlista �ver st�dda URL-protkoll.
You can use the optional second parameter and set it to TRUE, if you want to search for the file in the include_path, too.
Not: Context support was added with PHP 5.0.0. For a description of contexts, refer to Referens CXXXII, Stream Functions.
See also fpassthru(), file(), fopen(), include(), require(), virtual(), file_get_contents(), and Appendix M.
Föregående | Hem | Nästa |
popen | Upp | readlink |