# How can upload an image on site

**URL:** https://forum.kirupa.com/t/how-can-upload-an-image-on-site/288162
**Category:** Uncategorized
**Created:** [May 12, 2009, 8:05am UTC](https://forum.kirupa.com/t/how-can-upload-an-image-on-site/288162 "2009-05-12T08:05:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lawsonjason00](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@lawsonjason00](https://forum.kirupa.com/u/lawsonjason00)
#### Post date: [May 12, 2009, 8:05am UTC](https://forum.kirupa.com/t/how-can-upload-an-image-on-site/288162/1 "2009-05-12T08:05:01Z")

</div>

Hi All,

I am trying to upload a image in my web 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 = ‘http://’ . $\_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.

Please let me know about this issue.

Thanks  
[[FONT=&quot]mangosteen juice[/FONT]](http://www.mangosteenjuiceinfo.org)
