Zubrag.com
October 15, 2018, 10:06:39 PM *
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 erroir: Cannot modify header information  (Read 4725 times)
abu117
Newbie
*
Posts: 4


« on: July 19, 2011, 11:46:43 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:

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:     
Code:
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:00:52 PM »

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
Pages: [1]
  Print  
 
Jump to:  

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