hi,
I am working on a news script and I am trying to have it so that the webmaster sets a template ($archidxfile) that contains the string !PLNews! where they would like my news script's table to be generated. I have the following code, but it doesn't seem to work.
$itemplate = implode("", file($archidxfile));
$itemplate = split("[!PLNews!]", $itemplate);
$archindex = $itemplate[0];
when I do a print_r($itemplate);
I just get
Array ( [0] => ad> > [3] => [4] => [5] => [6] => [7] => [8] => - Di [9] => > tyl [12] => [13] => h [14] => [15] => t"); ?> ad> [17] => [18] => [19] => [20] => [21] => [22] => [23] => [24] => )
the file $archidxfile looks like this:
<head>
<title>PLNews - Die</title>
</head>
<body>
!PLNews!
</body>