On 5/17/07, Eugene Van den Bulke <[EMAIL PROTECTED]> 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

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to