[pmwiki-users] Request input on soon-coming FAST Data release
Crisses
crisses at kinhost.org
Fri Oct 6 07:55:28 CDT 2006
On Oct 6, 2006, at 8:08 AM, The Editor wrote:
>> Don't include_once from a function unless you have tested the
>> performance ramifications with a web server that has PHP caching. You
>> might end up slowing down that particular configuration, doing a
>> lot of
>> work just to make the recipe worse.
>>
>> I'd recommend something like this cookbook/data/data.php:
>> <?php # PmWiki check goes here
>> foreach ($_POST as $field => $value) {
>> if ($field == "page")
>> include_once (basename (__FILE__) . '/page.php');
>> if ($field == "create")
>> include_once (basename (__FILE__) . '/create.php');
>> if ($field == "destroy")
>> include_once (basename (__FILE__) . '/destroy.php');
>> ...
>> }
>
> Thanks Jo. I will follow this suggestion if the recipe gets much
> bigger. May hold off for now in light of the 1000 line cap!!!
It might be easier to do this while the program is still small ;)
Crisses
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20061006/4f85258c/attachment.html
More information about the pmwiki-users
mailing list