I'm trying to make some changes on my website, but I don't want to turn on error reporting globally.Is there any way to do so just for sub-domain?
You can do it for any file you want to debug, by putting this line at the very top of your page (before <!doctype...) <?php error_reporting(E_ALL); ?> <!doctype... To do NOT report errors, use "error_reporting(0);" For other values, check "error_reporting" function at www.php.net Actually, I leave error_reporting(E_ALL) on ALL my files, on ALL my sites! This forces me to make clean code, free of any errors.
You can also use FirePHP when you're debugging PHP code. (I won't use a computer or work on a site without it. It's like telling a carpenter to pound in nails with his fist.)