error with streaming png and a upgrade to PHP4.3.4

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jippie

    error with streaming png and a upgrade to PHP4.3.4

    I had a very simple gallery for photos on my site.
    The gallery was coded by an old friend I don't have contact anymore.
    I don't know much about PHP, so I used his code and everything was
    fine until I upgraded my PHP.
    I wanted to start learning PHP/mySQL so I upgraded from 4.1.2 to
    4.3.4, and now the gallery doesn't work any more.
    I have tried to fix and still am going to, but I have seen some errors
    in his code that should have caused an errors before but didn't. This
    doesn't make sense to me.

    It now creates output like this.

    notice:
    notice:
    warning
    here is the streamed PNG file.
    and then it repeats the same notices and warning over again.

    So what I want to know is there away to get this to work now without
    fixing the code, as it will take me a while to get good enough to
    understand and fix it all.
    I'm still going to try and fix it, it fun to learn, but it sort of
    suxs that it doesn't work anymore.

    Jippie
  • Reply Via Newsgroup

    #2
    Re: error with streaming png and a upgrade to PHP4.3.4

    Jippie wrote:
    [color=blue]
    > I had a very simple gallery for photos on my site.
    > The gallery was coded by an old friend I don't have contact anymore.
    > I don't know much about PHP, so I used his code and everything was
    > fine until I upgraded my PHP.
    > I wanted to start learning PHP/mySQL so I upgraded from 4.1.2 to
    > 4.3.4, and now the gallery doesn't work any more.
    > I have tried to fix and still am going to, but I have seen some errors
    > in his code that should have caused an errors before but didn't. This
    > doesn't make sense to me.
    >
    > It now creates output like this.
    >
    > notice:
    > notice:
    > warning
    > here is the streamed PNG file.
    > and then it repeats the same notices and warning over again.
    >
    > So what I want to know is there away to get this to work now without
    > fixing the code, as it will take me a while to get good enough to
    > understand and fix it all.
    > I'm still going to try and fix it, it fun to learn, but it sort of
    > suxs that it doesn't work anymore.
    >
    > Jippie[/color]

    I think most folk would need to see the code - and even then, if the
    code is too long it might be too difficult to resolve - however, I think
    its because variables that were defined, and visable in an earlier
    version of PHP are now no longer visable to some of the functions in
    your script because some securty weaknesses have been made tighter. I'm
    pulling at straws here and suggest you take a look at:



    and




    Hope something there gives you some direction,
    randelld

    Comment

    • Jippie

      #3
      Re: error with streaming png and a upgrade to PHP4.3.4

      > I think most folk would need to see the code - and even then, if the[color=blue]
      > code is too long it might be too difficult to resolve - however, I think
      > its because variables that were defined, and visable in an earlier
      > version of PHP are now no longer visable to some of the functions in
      > your script because some securty weaknesses have been made tighter. I'm
      > pulling at straws here and suggest you take a look at:[/color]

      Not everything is fixed, but getting there.

      Most of the errors are what you said, the scope.
      There was a couple of others to do with sockets returning extra chars,
      and not the correct length of the image.

      thx again.

      jippie

      Comment

      Working...