image loading problems about phproxy modification.

Discussion in 'PHP' started by zozzen, Feb 23, 2008.

  1. #1
    Hi, i'm trying to modify the proxified content of Phproxy but there's a problem in images loading.

    I tried to modify $_response_body with a code like this:

    $added = "helloworld";
    $_response_body = $added.$_response_body;
    echo $_response_body;

    the content can be shown, except images.

    I face no problem at loading smaller images, but bigger images have been broken or displayed strangely. Website like yahoo.com / flickr.com can't be displayed correctly after this modification. When i removed the mod, everything is back to be normal.

    I guess phproxy may set a timeout limit for image loading and prevent over-sized images to be loaded indefinitely. Does anyone know how to extend these timeout limit?

    Thanks for all helps and advices.
     
    zozzen, Feb 23, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Have you tried viewing the proxified images directly, to see if there are any PHP errors or timeouts?

    Jay
     
    jayshah, Feb 23, 2008 IP
  3. zozzen

    zozzen Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks for the hints. When i view images directly, it shows "The message ..... cannot be displayed because it contains errors." And i'm still not quite sure what really happened, but i decided to start from scratch to modify the code. So far the problem hasn't happened yet. (Perhaps i unintentionally removed some important codes during the modification. )
     
    zozzen, Feb 23, 2008 IP