Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7854251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:59:44+00:00 2026-06-02T19:59:44+00:00

I am developing w web site. Here I have included a thumnail page. It’s

  • 0

I am developing w web site. Here I have included a thumnail page. It’s working well in my localhost. But when I uploaded its show me an error see

Warning: Cannot modify header information - headers already sent by (output started at /mydomain/demo1/admin/thumbnail.php:50) in /mydomain/demo1/admin/act-addVehicle.php on line 191

my code

if(move_uploaded_file ($tmpName,$path.$actual_image_name)){
                        $succ=1;
                        chmod("$add",0777);
                        $imgSucc=1; 
                            //strt image thumbnail
                        include("./thumbnail.php");
                        // ends
                        }else{ echo "Failed to upload file Contact Site admin to fix the problem"; 
                        exit;}

How I avoid this error
is there any settings in php ini ?

does anyone know ?
please reply

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:59:45+00:00Added an answer on June 2, 2026 at 7:59 pm

    Without seeing thumbnail.php‘s code its hard to tell exactly what’s happening, but basically its outputting something before act-addVehicle.php on line 191 is setting another header.

    Most likely a single space at the end of the script. Check after ?> perhaps line 50 if just after.

    You could wrap the include(‘thumbnail.php’) into an ob_start() and ob_end_clean() but that will not solve the underlying issue of outputting before setting a new header.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a web site. Here I have implemented the URL rewrite in
I am developing a php web site. Here I have implemented clean URL using
I am developing w php web site. Here I have set a php cookie
I am developing a php web site. Here I want to calculate the distance
I am developing a php web site. Here I want to display twitter updates
In general, If I have a choice when developing a web site to use
I'm working on developing a Web 2.0 site, and I've been looking at how
PHP newbie here. I'm currently developing a shopping cart web site using PHP and
I'm developing a web site which will retrieve SMS messages that have been sent
I am developing a ASP.Net web site and my page works normally in IE/Firefox/Opera

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.