[pmwiki-users] PHP includes
Patrick R. Michaud
pmichaud at pobox.com
Thu Aug 10 11:18:47 CDT 2006
On Thu, Aug 10, 2006 at 10:55:54AM -0400, Gregory Martyn wrote:
> Hi all,
>
> I'm trying to write markup that will include an eval()'ed php script in my wiki. My php is simple:
> <?php echo 'testing'; ?>
>
>
> Right now I have this in my config.php:
>
> Markup('includefile', 'inline',
> "/\\(:includefile\\s+(file:[^$UrlExcludeChars]*?)\\s*:\\)/e",
> "Keep(eval(file_get_contents(str_replace('&','&','$1'))))");
>
>
> The markup:
> (:includefile file:///var/www/html/test.txt :)
>
> ..almost works, but the result is not inline with the rest of
> the text. Instead, when I do View->Page Source, the word
> testing preceeds the source of the rest of the page. Is there any
> way to get the output of the php script in the right place?
See the message I just posted in response to Clemens Gruber's
request for including PHP output, at
http://host.pmichaud.com/pipermail/pmwiki-users/2006-August/030372.html .
Again, strong security caveats apply.
Thanks,
Pm
More information about the pmwiki-users
mailing list