MyBB Central

Full Version: PHP Help Please
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Alright, I'm using a script to track the amount of downloads of a file on my website. The script is:

http://www.bal4.co.uk/2008/02/26/simple-...er-script/

Everything works fine, the counter updates and everything, but when I go to the countdownloads.php file I get a PHP error:

PHP Code:
WarningCannot modify header information headers already sent by (output started at /home/antmmamb/domains/dstudios.net/public_html/mybb/downloads/regal-theme-purple.php:1in /home/antmmamb/domains/dstudios.net/public_html/mybb/downloads/regal-theme-purple.php on line 11 

Help please?
NVM I found a much better script Big Grin
The problem is normally caused by the script having a blank line at the beginning before the PHP starts. Then, when the headers are sent, there's already been an output.
Alright, thanks. Learn something new every day, huh?
(Oct 20, 2008, 04:23 AM)Jordan Wrote: [ -> ]The problem is normally caused by the script having a blank line at the beginning before the PHP starts. Then, when the headers are sent, there's already been an output.

yes, i agree with you, no HTML, no blank space above header() function