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 327407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:23:57+00:00 2026-05-12T09:23:57+00:00

I have the following: $imageurl = <img class=’item_thumb’ src=’getimagethumbnail.php?imagename=.urlencode($product_image).&from=.$prodimagedir.’ min-width=’150′ min-height=’150′ border=’0′ class=’item_thumb’>; Which

  • 0

I have the following:

$imageurl = "<img class='item_thumb'
src='getimagethumbnail.php?imagename=".urlencode($product_image)."&from=".$prodimagedir."' 
min-width='150' min-height='150' border='0' class='item_thumb'>";

Which creates the following html:

<img class="item_thumb" border="0" min-height="150" min-width="150"
src="getimagethumbnail.php?imagename=productsmall_1248886833bloggingbok.jpg&
from=products/"/>

However, the image does not show up. I point my browser to that src link and it gives me a bunch of unreadable text which I am assuming is the image meaning that the script getimagethumbnail is working fine. (I am guessing).

But as I said, the image is not appearing at all. What is wrong and what steps can I take to determine the problem?

Just to add, when I point my browser to that src link: It also gives me:

 Warning: Cannot modify header information - headers already sent by 
(output started at /home/dji/public_html/getimagethumbnail.php:35) in 
/home/dji/public_html/includes/functions.php on line 4953

I am assume this is because of the output?? This script was working fine and I have made no changes to it as far as I am aware!

Thanks

  • 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-05-12T09:23:58+00:00Added an answer on May 12, 2026 at 9:23 am

    You are trying to send the header('Content-Type') command, after outputting whitespace/characters.

    You need to make sure that the header command is before anything is printed on the page.

    This will work:

     header('Content-Type: ....');
     readfile('file.png');
    

    This won’t

     readfile('file.png');
     header('Content-Type: ....');
    

    This is because the header command tells the browser what to look for in the content. All of the headers must be sent before any content because that is how the connections works. The browser can’t be told what to expect after the content has already been sent.

    Open Connection With Server -> Get Headers -> Get Content -> Close Connection

    One of the big reasons behind this is encoding. As the content comes through, the browser has to decode it properly. If you send a header in the middle of the page telling the browser that the encoding type is a, when it was processing it like b, things can get really confusing.

    So, in order to send the headers properly, you must put the header command before any output.

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

Sidebar

Related Questions

I have the following code HTML: <div class=dropShadow> <img src=images/headerimage /> </div> CSS: div.dropShadow
I have the following links: <a href=http://example.com/src/abc.png><img src=http://example.com/res/bca.png></a> <a href=http://example.com/src/hvc.gif><img src=http://example.com/res/ncq.jpg></a> Using PHP, I
i have the following script css: img { background-image:url(man.png); background-repeat:no-repeat; padding-top:6px; padding-bottom:60px; padding-left:10px; padding-right:10px;
I have the following piece of code that pulls an image URL from a
I have the following ModRewrite rule RewriteRule ^img/(.*) /wp/wp-content/themes/vizu/img/$1 [QSA,L] It works when the
I have the following code: <div class=extra-details> <ul class=browse-product-usp> <li> <span class=text> Dimension: 11x11
I have a imagebutton as following : <asp:ImageButton ID=Send runat=server ImageUrl=~/images/send.gif OnClientClick=javascript:return checkDataAndConfirmSendToVOA(); AlternateText=Send
I have a seemingly simple html construct: <div class=featured-image img-wrapper full-width> <a href=http://localhost/wordpress/?p=26> <img
I have the following simplified HTML code: <div> <h2>XXX</h2> <img XXX /> <a href=XXX><div
I have the following string variables: string feedImage =http://im.media.ft.com/m/img/rss/RSS_Default_Image.gif rssImageStyle = style=\background-image:url(\' + feedImage

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.