[pmwiki-users] markup using exec

The Editor editor at fast.st
Thu May 17 06:51:17 CDT 2007


On 5/17/07, Eugene Van den Bulke <eugene at boardkulture.com> wrote:
> Hi there,
>
> I have a problem.
>
> I have defined a new markup that execute a program on my server using
> the PHP exec function and "renders" the output into PmWiki.
>
> It worked fine on a Linux box but when I switched to a Windows box (not
> my choice) a "bug" showed up.
>
> My users tend to double click on links instead of single clicking. When
> they do that for a page that's using the exec-markup, calling twice the
> external program kind of crashes the server.
>
> Any idea how I can circumvent the problem? On Linux it didn't happen ...



You could set a global variable in the function and then check if that
variable has been set. If set (the second time the function is called)
exit the markup function.

Cheers,
Dan



More information about the pmwiki-users mailing list