[Pmwiki-users] own special markups are causing <pre > statements in the html output

Peter Heuchert lists
Thu Apr 29 07:07:58 CDT 2004


Hi Marcus,

sorry but this is not working. I got  for every line of a page two error 
messages:

*Warning*: file("") - Success in */hdc/www/wiki/pmwiki.php(866) : regexp 
code* on line *1*
*Warning*: Bad arguments to implode() in */hdc/www/wiki/pmwiki.php(866) 
: regexp code* on line *1*

And the statement was not referenced in the pages. It screwed up the 
whole site.
This happend with

$InlineReplacements["/[#htmlinc:(.*?)#]/e"] = "implode('',file(\"$1\"))";

Can not try the other version, I'm running a standard Debian Woody : PHP 
4.1.2

Regards Peter

Marcus Brauer schrieb:

>To include HTML without additional markup try to add this inside your
>local/config.php instead:
>
>$InlineReplacements["/[#htmlinc:(.*?)#]/e"] = "implode('',file(\"$1\"))";
>
>This line allows you this new WikiCommand
>
>     [#htmlinc:<url-to-html-file>#]
>
>And you won't get any unwanted <pre>s, also no frames, borders or what
>ever. It's a simple include.
>
>If you have a PHP version 4.3.0 or later you should use this instead:
>
>$InlineReplacements["/[#htmlinc:(.*?)#]/e"] = "file_get_contents(\"$1\")";
>
>--
>Marcus Brauer
>
>
>  
>



More information about the pmwiki-users mailing list