include()

Esimerkki 12-3 .






Esimerkki 12-4 .






If " URL fopen wrappers " are enabled in PHP (which they are in the default configuration) , you can specify the file to be included using an URL (via HTTP or other supported wrapper - see Liite I for a list of protocols ) instead of a local pathname .

Varoitus

The Windows version of PHP currently does not support remote file accessing for this function , even if allow_url_fopen is enabled .

Esimerkki 12-5 . include( ) through HTTP








See also Remote files , fopen() and file() for related information.

Esimerkki 12-6 . include( ) and conditional blocks






Huomaa :

Esimerkki 12-7 . include( ) and the return( ) statement