<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>  </DIV><BR><DIV><DIV>On Oct 6, 2006, at 8:08 AM, The Editor wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Don't include_once from a function unless you have tested the</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">performance ramifications with a web server that has PHP caching. You</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">might end up slowing down that particular configuration, doing a lot of</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">work just to make the recipe worse.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px; font: 12.0px Comic Sans MS; min-height: 16.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">I'd recommend something like this cookbook/data/data.php:</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS"><SPAN class="Apple-converted-space">  </SPAN>&lt;?php # PmWiki check goes here</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS"><SPAN class="Apple-converted-space">  </SPAN>foreach ($_POST as $field =&gt; $value) {</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS"><SPAN class="Apple-converted-space">  </SPAN>if ($field == "page")</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS"><SPAN class="Apple-converted-space">    </SPAN>include_once (basename (__FILE__) . '/page.php');</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS"><SPAN class="Apple-converted-space">  </SPAN>if ($field == "create")</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS"><SPAN class="Apple-converted-space">    </SPAN>include_once (basename (__FILE__) . '/create.php');</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS"><SPAN class="Apple-converted-space">  </SPAN>if ($field == "destroy")</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS"><SPAN class="Apple-converted-space">    </SPAN>include_once (basename (__FILE__) . '/destroy.php');</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS"><SPAN class="Apple-converted-space">  </SPAN>...</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS"><SPAN class="Apple-converted-space">  </SPAN>}</FONT></P> </BLOCKQUOTE><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Comic Sans MS; min-height: 16.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Thanks Jo. I will follow this suggestion if the recipe gets much</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">bigger. May hold off for now in light of the 1000 line cap!!!</FONT></P> </BLOCKQUOTE></DIV><BR><DIV>It might be easier to do this while the program is still small ;)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Crisses</DIV></BODY></HTML>