473,394 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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
Jul 17 '05 #1
2 1529
Jippie wrote:
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


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
Jul 17 '05 #2
> 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:


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
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Christoph Nothdurfter | last post by:
Hallo! I was wondering if my PHP4-Scripts will run under PHP5 (Haeven't tried the beta yet). Does anybody know? Thank you, -Christoph
1
by: Ravi & Paami | last post by:
After I tried upgrading my php version from 3 to 4, all my code which passes parameters between web pages have stopped working. Not sure what the problem is. Have tried defining the parameters in...
11
by: neur0maniak | last post by:
Hi, I've been eager to try out PHP5, so I've dumped it on my little dev machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the "mappings" page as I'm used to doing with PHP4....
0
by: seajay | last post by:
hi, I am currently running Redhat 9 with PHP4.2 I would like to upgrade to PHP4.3 (RPM) in order to install Sablotron XSL Processor. Did anyone managed to do so. Please advise.
0
by: Chuck Anderson | last post by:
I have a set of Php scripts that run on my home PC (Windows XP- Apache 2 - Php 4.4.1) that reads my web sites' daily Apache access log file (a gzipped file) on the remote server...
2
by: Justin | last post by:
Hi, Im using easyphp1-8 currently and intend to upgrade the php4.3 into php5 as many of the functions are not allowed, or undefined.... so how do i proceed with this? thank you... Regards,...
19
by: art | last post by:
Hi, I am running PHP 4.3.9 and Apache 2.0.52. This is the error: an unknown filter was not added: PHP I've read over 40 suggestions with no luck. Can anyone help? I am running Cent-OS. ...
13
by: John | last post by:
Our technical guy says that our linux server is running PHP 4. I thought we were running 5 already. He says he wants to charge us £500 a year to install and support it because it is a lot of...
2
by: nguyenminhhai | last post by:
Hi everyone, I'm reading "The C++ Programming Language" (Bjarne Stroustrup, 3rd edition). At page 193, he said "Doing error handling using the same level of abstraction as the code that caused the...
15
by: Lawrence Krubner | last post by:
Does anything about this script look expensive, in terms of resources or execution time? This script dies after processing about 20 or 25 numbers, yet it leaves no errors in the error logs. This is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.