[vox-tech] more php questions
Peter Jay Salzman
vox-tech@lists.lugod.org
Sun, 3 Mar 2002 12:20:00 -0800
how does one "import files of functions" into a php document? for
example, i'd like to have a function (i'm using a mock language; i'm
still learning php):
function PrintListArray(array)
{
print "<B>The Heading</B>";
print "<UL>";
foreach $i in (@array) {
print "<LI> $i\n";
}
print "</UL>";
}
this isn't php, but the intention (i hope) is clear. i'd like for this
function to be shared by multiple web pages. is there a way of sticking
this function (properly written with php) into a file and importing that
file from the various webpages so they can all use PrintListArray?
pete