October 2006
Intermediate to advanced
720 pages
17h 56m
English
File inclusion is a wonderful concept that enables you to write library files and reuse them when you need to in other programs. Table 4-11 covers the four functions that enable you include PHP library files.
| Statement Name | Description |
|---|---|
| include("path/name"); | The include() statement takes a single argument, which needs to be a string containing an absolute or relative path statement and file. The file needs to contain a working PHP program unit that is delimited by <?php and ?> tags. The include() statement should only occur once per file, or you will inherit multiple copies of the library. The include() statement will raise a nonfatal warning if the file is unavailable. |
| include_once("path/name"); ... |
Read now
Unlock full access