PmWiki | Cookbook / phpalert (original) (raw)

Summary: use popup for debugging

Version: 2.3

Prerequisites: none

Status: Working

Maintainer:

Questions answered by this recipe

This section is optional; use it to indicate the types of questions (if any) this recipe is intended to answer.

Description

Popup alert box for debugging.

This recipe is intended for administrators to use inside a php program for debugging.

Syntax is just like the javascript alert() function.

phpalert($somevalue);

phpalert("hello world");

phpalert("string");

phpalert('single quotes ok');

phpalert("data=$datavar"); - can use php variables inside double quotes

Installing

Copy phpalert.phpΔ to your cookbook directory

In your config.php enter:

include_once("cookbook/phpalert.php");

or in your farmconfig.php enter:

include_once("$FarmD/cookbook/phpalert.php");

Notes

Release Notes

Comments

See Also

Contributors

User notes : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.