Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) PHP Image Upload Script Error

  • PHP Image Upload Script Error

    Posted by Amy Steele on December 12, 2008 at 7:33 pm

    I’m trying to put an image upload on my page and everything works until it tries to redirect to the success page which gives me this error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/amlynn0/public_html/studios/upload.processor.php:7) in /home/amlynn0/public_html/studios/upload.processor.php on line 97

    on line 97 is this:

    header(‘Location: ‘ . $uploadSuccess);

    and $uploadSuccess is this:

    $uploadSuccess = ‘https://’ . $_SERVER[‘HTTP_HOST’] . $directory_self . ‘upload.success.php’;

    I’ve tried to put header(); on my success page like some other forums suggested, but it didn’t work.

    Any suggestions?

    Curtis Thompson replied 17 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Curtis Thompson

    December 12, 2008 at 7:40 pm

    hello…

    that error means that you’ve already done some sort of output on the page prior to that – check line 7 from the looks of the error…

    hope that helps!

    sitruc

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy