User Tools

Site Tools


uphp:uphp_language_basics

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:uphp_language_basics [2017/03/18 20:13]
jeff
uphp:uphp_language_basics [2021/09/13 05:57] (current)
Line 1: Line 1:
 ======uPHP Language Basics====== ======uPHP Language Basics======
 +
 The following sections describe how to work with uPHP scripts. The following sections describe how to work with uPHP scripts.
  
 =====uPHP Tags===== =====uPHP Tags=====
-When Wattmon parses a file, it looks for opening and closing tags, which are ''<?'' and ''?>'' respectively. This tells Wattmon to start and stop interpreting the uPHP code between them. Parsing in this manner allows you to integrate script code within an HTML file as everything outside of a pair of opening and closing tags is ignored by the uPHP parser.+ 
 +When [[hardware:wattmons|Wattmon]] parses a file, it looks for opening and closing tags, which are ''<?'' and ''?>'' respectively. This tells [[hardware:wattmons|Wattmon]] to start and stop interpreting the uPHP code between them. Parsing in this manner allows you to integrate script code within an HTML file as everything outside of a pair of opening and closing tags is ignored by the uPHP parser.
  
 <code php> <code php>
Line 26: Line 28:
    
 =====Instruction Separation===== =====Instruction Separation=====
 +
 As in C and PHP, uPHP requires instructions to be terminated with a semicolon at the end of each statement. The closing tag of a block of uPHP code automatically implies a semicolon; you do not need to have a semicolon terminating the last line of a uPHP block. The closing tag for the block will include the immediately trailing newline if one is present. As in C and PHP, uPHP requires instructions to be terminated with a semicolon at the end of each statement. The closing tag of a block of uPHP code automatically implies a semicolon; you do not need to have a semicolon terminating the last line of a uPHP block. The closing tag for the block will include the immediately trailing newline if one is present.
  
    
 =====Comments===== =====Comments=====
 +
 uPHP supports 'C', 'C++' and Unix shell-style (Perl style) comments. For example: uPHP supports 'C', 'C++' and Unix shell-style (Perl style) comments. For example:
  
Line 60: Line 64:
 =====Programmer Reference===== =====Programmer Reference=====
  
-  * [[.functions:uphp_function_reference|uPHP Reference]] +  * [[functions|uPHP Function Reference]] - The entire function list (advanced) 
-  * [[.uPHP Special Variables]]+ 
 +  * [[uPHP Special Variables]] - Special arrays that are populated automatically before a script is run 
  
uphp/uphp_language_basics.1489867988.txt.gz · Last modified: 2021/09/13 05:56 (external edit)