Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] file_get_contents i jej parametry domyślne
rafalp
post
Post #1





Grupa: Zarejestrowani
Postów: 224
Pomógł: 18
Dołączył: 4.02.2003
Skąd: Częstochowa

Ostrzeżenie: (0%)
-----


file_get_contents ( string $filename [, int $flags [, resource $context [, int $offset [, int $maxlen ]]]] )

Jak wywołać jeśli chce użyć tylko parametru offset ?

Ten post edytował rafalp 26.06.2008, 19:58:52
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
wipo
post
Post #2





Grupa: Zarejestrowani
Postów: 856
Pomógł: 19
Dołączył: 30.08.2005
Skąd: 100lica

Ostrzeżenie: (0%)
-----


no nazwe pliku musisz podać potem dajesz TRUE, NULL, i ten offset

co do true nie jestem pewnie ale mozesz spojrzec na dokumentacje
Go to the top of the page
+Quote Post
Cysiaczek
post
Post #3





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




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. ?>
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 20:17