I have a very few vars which I wouldn't care if someone DID hack on them, but I find I have to declare this a lot:
$fl=FILE;
$line=LINE+1;
use_my_function( ....... )
the receiving function globalizes these two vars and if there is a problem it will say "problem with query in file ______ on line _"
However, I find I'm using this debugging more and more and wonder - can you just declare:
global $fl;
global $ln;
OUTSIDE a function?
Thanks,
Sam