//upper section of large code
$a = Array(); //Define array $a
$a[“ “]; //1st element is blank
$fh = fopen( //open file that is an array of names whose names have 1 to 6 parts separated by spaces
//save parts of $fh in $a for later use
… in a subsequent html form-section of the script, $a is used in an option tag as a selection
[php]<?php //lower section
//$a is used in a form button allowing selection of a name from $a
This script has worked beautifully for years.
The upper section (1st php code above) was saved verbatim as a file <?php ‘$snippet.php’ ?> and then called as require_once(‘$snippet.php’)
in a new script. Now things are ugly!
Immediately following the require_once() the body of the snippet is displayed verbatim on my monitor and not executed!
What have I done wrong?
USIT again needing help