REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP Help Please
#1
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?
Reply
#2
NVM I found a much better script Big Grin
Reply
#3
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.
Reply
#4
Alright, thanks. Learn something new every day, huh?
Reply
#5
(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
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Question Need help with hyperlinks in php chetandhiman 3 1,542 May 21, 2010, 04:56 AM
Last Post: chetandhiman
  How long it takes to learn php? that_guy 2 1,646 Jul 31, 2009, 04:29 PM
Last Post: Gonzo
  Need a php script Vysse 0 1,101 Mar 18, 2009, 06:19 PM
Last Post: Vysse

Forum Jump:


Users browsing this thread: 1 Guest(s)