User Tools

Site Tools


uphp:functions:include

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:include [2018/04/14 12:52]
jeff [Notes] added with links to uphp_compiler and uphp_language_basics
uphp:functions:include [2021/09/13 05:57] (current)
Line 26: Line 26:
 ====Notes==== ====Notes====
  
-This function is very useful for including frequently repeated code in multiple scripts. It is also useful for including different code depending upon configuration or provided files (varying "modules" or "packages").+This function is very useful for including frequently repeated code in multiple scripts. It is also useful for including different code depending upon configuration or provided files (varying "[[hardware:modules]]" or "packages").
  
 The code contained in the included file is compiled into the script the first time the script is run. If changes are made to the contents of an included file without modifying the script that contains [[include]] then recompilation must be forced (by deleting the .cgc file). See [[uphp:uphp_compiler|The uPHP Compiler]] for more information (forced recompilation is discussed there in section [[uphp:uphp_compiler#Notes]]). The code contained in the included file is compiled into the script the first time the script is run. If changes are made to the contents of an included file without modifying the script that contains [[include]] then recompilation must be forced (by deleting the .cgc file). See [[uphp:uphp_compiler|The uPHP Compiler]] for more information (forced recompilation is discussed there in section [[uphp:uphp_compiler#Notes]]).
Line 32: Line 32:
 The included file is interpreted as HTML unless it contains the opening and closing uPHP Tags ''<?'' and ''?>''. See [[uphp:uphp_language_basics|uPHP Language Basics]] for more information. The included file is interpreted as HTML unless it contains the opening and closing uPHP Tags ''<?'' and ''?>''. See [[uphp:uphp_language_basics|uPHP Language Basics]] for more information.
  
-====See Also====+====Also See====
  
 [[call_user_func()]] - Call a user defined function with optional parameters [[call_user_func()]] - Call a user defined function with optional parameters
uphp/functions/include.1523710364.txt.gz · Last modified: 2021/09/13 05:56 (external edit)