[pmwiki-devel] eval function

The Editor editor at fast.st
Mon Dec 11 20:45:19 CST 2006

I'm trying to make it easier for admins to write their own zap
modules, but can't seem to get this line to work:

eval("ZAP$mod($field, $value)");

If I print_r the string in eval( ) it looks exactly like I want.  For example:

ZAPfiles(create, Test)

But for some reason, it does not seem to be executing.

I also tried

eval("ZAP$mod('" . $field . "', '" . $value . "')");

Which is

ZAPfiles('create', 'Test')

But it doesn't work either.  Any ideas how to get this to call the
ZAPfiles function?


More information about the pmwiki-devel mailing list