Small phproxy problem - images dont load

Discussion in 'PHP' started by simon369, Oct 6, 2007.

  1. #1
    Hi

    On phproxy the images arnt loading on the proxified pages

    try it at simon369.info

    Any help would be realy nice

    :D
     
    simon369, Oct 6, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    The images do load, but they are not recognized as such. The reason for this could be output being sent to the browser before the image content is displayed.

    http://simon369.info/index.php?q=aH...oL1VzZXJfVmlkZW9fMS8xMDA2X2hhbW1lckNOVi5qcGc=

    if you look at the source, you'll see the image data.

    Try setting these lines at the top of your script and see if you get any errors.

    
    error_reporting(E_ALL);
    ini_set('display_errors', '1');
    
    PHP:
     
    nico_swd, Oct 6, 2007 IP
  3. simon369

    simon369 Active Member

    Messages:
    1,712
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    90
    #3
    have done it

    and have a look now :D

     
    simon369, Oct 6, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    I notice there are some blank lines in front of the image data, on all images. While this doesn't happen when I look at the data without using your proxy. This happens with all pages, btw, not only images.

    Perhaps there are some white spaces before the <?php tags, or somewhere else. It's pretty impossible to tell where they come from without seeing your code.
     
    nico_swd, Oct 6, 2007 IP
    simon369 likes this.
  5. simon369

    simon369 Active Member

    Messages:
    1,712
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    90
    #5
    Thanks so much it was that there was lines at the top

    I never knew that could make a difference to it

    Thanks a lot
     
    simon369, Oct 6, 2007 IP