[prev] [index] [next]

Executing PHP Scripts (cont)

PHP execution model has several annoyances ...

Common error #1: omitting   <?...?>

Result: PHP displays program instead of executing it.

Common error #2: misspelling variable names

Result: PHP continues execution with value 0 or "".

Common error #3: using global variables in functions

Result: unavailable ( 0 value), unless declared global in function.