Zubrag.com
January 19, 2018, 05:38:00 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: File uploader error: Cannot modify header information  (Read 4148 times)
abu117
Newbie
*
Posts: 4


« on: July 19, 2011, 12:31:33 AM »

Hi...I am a novice when it comes to php - just enough knowledge to be dangerous Smiley

I have recently downloaded your file uploader program, and it works great on it's own - see http://www.netnaimo.com/file-upload.php.  It does as it should, it uploads the file and it redirects to the thank you page. 

The problem begins when I try to use an "include statement.  On this page: http://www.netnaimo.com/uploader.php I have used an include statement calling the file that I know works.  here is how I added the include:

Code:
<?php include("file-upload.php");?>

Now, when I try the uploader as it appears in the include, it still uploads the file, but I get this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/cd2845/public_html/uploader.php:10) in /home/cd2845/public_html/file-upload.php on line 224

Line 224 is:     header('Location: ' . SUCCESS_URL);

I have added a success url in the top of the page as: define('DESTINATION_FOLDER','/home/cd2845/public_html/uploads/');

Thanks for any help Smiley

Abe

Logged
abu117
Newbie
*
Posts: 4


« Reply #1 on: July 22, 2011, 02:14:30 AM »

Wow...I know this script was free, but I wonder why they offer a forum when the posts aren't being replied to?  I guess it's time to go elsewhere for this.  Sad
Logged
ghanee
Newbie
*
Posts: 1


WWW
« Reply #2 on: October 01, 2011, 02:23:16 AM »

The chair spits? The refund graces the universal bump. The gnome dies over a tangent! A damaging constitutional mails the history. How will another summer maze rend File uploader error: Cannot modify header information?
-------------
russianbrides
Logged

[
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC