close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error when file attempts to download...

Thread began 8/12/2010 4:26 am by blackweldermhe400113 | Last modified 8/12/2010 10:13 am by Jason Byrnes | 639 views | 1 replies |

blackweldermhe400113

Error when file attempts to download...

I've applied the dfp download function to a button on my audio page following the instructions from the "How to create a download center" tutorial. When ever I hit the download button the browser stops responding for a moment the dumps the following error along with a bunch of strange code. I can tell that the file is mapped correctly because I can pick out the name of the file in all of the junk code. The error is as follows:

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\yourWorkingCopy\audio.php:6) in C:\xampp\htdocs\yourWorkingCopy\WA_DigitalFilePro\HelperPHP.php on line 688

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\yourWorkingCopy\audio.php:6) in C:\xampp\htdocs\yourWorkingCopy\WA_DigitalFilePro\HelperPHP.php on line 689

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\yourWorkingCopy\audio.php:6) in C:\xampp\htdocs\yourWorkingCopy\WA_DigitalFilePro\HelperPHP.php on line 690

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\yourWorkingCopy\audio.php:6) in C:\xampp\htdocs\yourWorkingCopy\WA_DigitalFilePro\HelperPHP.php on line 691

I've attached the file also. If you could help I would greatly appreciate it.

Thanks
James

Attached Files
audio.zip
Sign in to reply to this post

Jason ByrnesWebAssist

The Headers Already Sent error occurs if there is any out put to the page before the header() or session_start() functions are used.


you can use the error text to help find where the issue is on the page:

  output started at C:\xampp\htdocs\yourWorkingCopy\audio.php:6  



means that the output that is causing the error is in the audio.php page around line 6, probably the line before it (5).

On line 5 I see that there is a blank space after the closing PHP tag:
"?> "


it is this blank space that is causing the error.

remove that blank space at the end of line 5 to fix the problem.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...