Quote:
Originally Posted by anolian
PS - failing any concrete suggestions, can anyone tell me how I can get a plugin to output something to the page or to a file so I can see what is happening while the plugin is executing please?
If I could do that I could at least debug my plugin!
|
Sometimes I just echo what I want to see then call die(); (but of course you don't want to do that on a live site, unless maybe you check for your userid).
You can also open a file and print to it:
Code:
$fp = fopen("debug.txt", "w");
fwrite($fp, "This is a debug message, i=$i");
but if you do that you may need to specify a path so your file gets created in a directory where your web server has write permission.