Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP] file_get_contents i jej parametry domyślne
Forum PHP.pl > Forum > Przedszkole
rafalp
file_get_contents ( string $filename [, int $flags [, resource $context [, int $offset [, int $maxlen ]]]] )

Jak wywołać jeśli chce użyć tylko parametru offset ?
wipo
no nazwe pliku musisz podać potem dajesz TRUE, NULL, i ten offset

co do true nie jestem pewnie ale mozesz spojrzec na dokumentacje
Cysiaczek
Cytat
flags

For all versions prior to PHP 6, this parameter is called use_include_path and is a bool. The flags parameter is only available since PHP 6. If you use an older version and want to search for filename in the include path, this parameter must be TRUE. Since PHP 6, you have to use the FILE_USE_INCLUDE_PATH flag instead.


Cytat
context

A valid context resource created with stream_context_create(). If you don't need to use a custom context, you can skip this parameter by NULL.


Zatem, normalnie
  1. <?php
  2. file_get_contents($file, null, $offset)
  3. ?>
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.