Results 1 to 4 of 4

Thread: Php header problem

  1. #1
    Join Date
    Dec 2008
    Posts
    29

    Php header problem

    hi,
    i have problem,I upload a picture which stored in my database (BLOB) but when I post a header: header ( "Content-type:". $ response [ 'extension']); Obviously if I put variables it is no longer on top of the page and also in Internet Explorer General.

    thank you in advance

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: Php header problem

    i have problem,I upload a picture which stored in my database (BLOB) but when I post a header: header ( "Content-type:". $ response [ 'extension']); Obviously if I put variables it is no longer on top of the page and also in Internet Explorer General.
    you need the header before sending the data to the user, no matter where it is compared to the PHP variables. there should be no echo - or even a blank line before <? php.Write your text in UTF-8 or iso-8859. When you write with notepad + + in UTF8, there is an invisible character ( 'BOM') at the beginning of the file. It is sent before the headers of PHP -> headers do not work, no cookies or sessions or the Content-Type ...

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Php header problem

    It would be useful to actually see the code to figure out specifically what is wrong..... But I have also had this issue..... For some reason php doesn't like spaces in the header. So try to remove all line spaces before the main part of the code/site, or the start of the <?php

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Php header problem

    With notepad + +, you must be able to view your file in hexadecimal. Can you give the first 5 bytes?

Similar Threads

  1. Connect USB 3.0 front case panel header to motherboard w/o a header?
    By Dogs-Day-Out in forum Motherboard Processor & RAM
    Replies: 4
    Last Post: 14-04-2012, 07:02 PM
  2. Problem with header() + syntax
    By Leiff in forum Software Development
    Replies: 4
    Last Post: 22-01-2010, 11:07 PM
  3. Why we use Header Files
    By Jaiwanti in forum Software Development
    Replies: 3
    Last Post: 19-11-2009, 08:25 AM
  4. IIS7: Add expires header or cache-control header
    By quota in forum Software Development
    Replies: 3
    Last Post: 06-06-2009, 07:45 PM
  5. bad_pool header
    By hippey in forum Windows XP Support
    Replies: 1
    Last Post: 13-02-2005, 11:23 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,613,330.38241 seconds with 16 queries