Quote:
Originally Posted by ApplePro
Hello guys,
When I run sample script (test.php), I'm getting an error about headers:
I've checked script and there are no spaces before first 4 lines of code.
By the way, I see this only when I logged out. When I logged in (through vBulletin), I see this:
How can I fix this?
PS: I have lastest vBulletin version installed. And the installation is fresh (just one thread).
|
You need to either disable error output (which should be done on all Production level machines), or you need to reduce the errors that PHP reports (Notices aren't really errors, and don't really need to be logged on a production system. They're good for development.)
You'll either need to edit your php.ini file (requires root access to the machine), set a flag in your .htaccess file, or even set the config option in your PHP somewhere with ini_set().
Reference PHP's error logging manual for more info:
http://us2.php.net/manual/en/ref.errorfunc.php