🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.php
2 messages
2 total messages Started by BoJo Tue, 04 Sep 2001 08:06
Różnica między include a require
#2142
Author: BoJo
Date: Tue, 04 Sep 2001 08:06
5 lines
1137 bytes
Jaka jest zasadnicza różnica między tymy dwiema funkcjami. Wiem że Requie
można wywołać raz a include ile się chce. Ale chodzi mi w rzeczywistości w
działaniu - może jakiś przykład.

Pozdrawiam.
Re: Różnica między include a require
#2143
Author: Marcin
Date: Tue, 04 Sep 2001 08:17
21 lines
1551 bytes
> Jaka jest zasadnicza różnica między tymy dwiema funkcjami. Wiem że Requie
> można wywołać raz a include ile się chce. Ale chodzi mi w rzeczywistości w
> działaniu - może jakiś przykład.

require:
The require() statement replaces itself with the specified file

include:
The include() statement includes and evaluates the specified file

wiecej na:

http://pl.php.net/manual/en/function.require.php
http://pl.php.net/manual/en/function.include.php

zobacz takze

http://pl.php.net/manual/en/function.require-once.php
http://pl.php.net/manual/en/function.include-once.php

Marcin
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads