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:
http://ca2.php.net/language.variables.scope
and
http://ca.php.net/reserved.variables
Hope something there gives you some direction,
randelld