kilpajr said:
Thanks for the recommendation. I just tried it but I think I like HyperEdit better. It is actually showing a parse error, whatever that is. What's wrong with this?
Code:
GLOBAL $birth_month_text;
$birth_month_text = "January";
Nothing wrong with that (assuming that code is in a function and that is the first thing in the function), however, PHP doesn't necessarily report the correct line number with error messages. Or rather, it doesn't report the line number that the mistake is on - for example, if you did
Code:
function my_function ()
GLOBAL $birth_month_text;
$birth_month_text = "January";
}
It would report line 2 as the error, when in fact the error is on line 1 (I missed out the { ). Parse error just means you did something wrong that stops the script from running - it should give you a bit more detail, for example :
Parse error: parse error, unexpected T_GLOBAL, expecting '{' in /home/knox/public_html/current/v5.nightb4.com/dev/test2.php on line 2
Which is the error generated for the code above. The second part gives more indication of what you did wrong.
Can't really help with debugging tools other than the built in errors - I don't tend to use any - I've just learnt the likely place for errors from experience.