User Tools

Site Tools


uphp:functions:include

This is an old revision of the document!


include

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Include a file within the current script at the current location

Description

include ( string $filename )

This function includes and evaluates the specified file. When a file is included, the code it contains inherits the variable scope of the line on which the include occurs. Any variables available at that line in the calling file will be available within the called file, from that point forward. If the include occurs inside a function within the calling file, then all of the code contained in the called file will behave as though it had been defined inside that function. So, it will follow the variable scope of that function.

Parameter

$filename: String containing the path and filename of the script to include and evaluate

Return Values

None

See Also

call_user_func() - Call a user defined function with optional parameters

exec() - Run a script with an optional delay

function_exists() - Check if a function exists (native or custom)

function - Define a function

uphp/functions/include.1523696945.txt.gz · Last modified: 2021/09/13 05:56 (external edit)