473,499 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

obscure bug related to size of script file?

hi

i am having a problem with a php script i am trying to write.
the problem is that the ouput from the script (the html) was
sometimes being truncated, but sometimes it would work
as expected.

i managed to narrow the problem down (believe it or not) to
the difference between a sinle character anywhere in the script.

by this i mean, for example, when the php script was at 10,589 bytes
it worked perfectly. if i took one character out from anywhere in
the in the script (and i mean anywhere, changed a printf to a print,
or took a character from a php comment, or took a char from some
html outside the php scriplets, or changed a number from say 100 to 99)
it would fail!!!! and by fail i mean the result that was being received
by my browser was truncated about half way down the page (in the
middle of some html from the script!).

i am totally totally blown away by this obscure bug. has anyone
seen anything like it? maybe it is fixed in later versions of php?

the stuff i am running is:

PHP 4.3.3 (cgi) (built: Sep 1 2003 04:45:21)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

RedHat Linux 7.x OS

Apache/1.3.27 Server
thanks

Ryan
Jul 17 '05 #1
1 1664
Ok, so i finally figured it out...

turns out it was a bug in the ftp client i was using to upload
that was truncating the script!!! must have been the sequence
of chars in the script not being escaped properly or something..

lol, what a pain!

Ryan

"Ryan" <ry**@someplace.com> wrote in message
news:3f******@news.comindico.com.au...
hi

i am having a problem with a php script i am trying to write.
the problem is that the ouput from the script (the html) was
sometimes being truncated, but sometimes it would work
as expected.

i managed to narrow the problem down (believe it or not) to
the difference between a sinle character anywhere in the script.

by this i mean, for example, when the php script was at 10,589 bytes
it worked perfectly. if i took one character out from anywhere in
the in the script (and i mean anywhere, changed a printf to a print,
or took a character from a php comment, or took a char from some
html outside the php scriplets, or changed a number from say 100 to 99)
it would fail!!!! and by fail i mean the result that was being received
by my browser was truncated about half way down the page (in the
middle of some html from the script!).

i am totally totally blown away by this obscure bug. has anyone
seen anything like it? maybe it is fixed in later versions of php?

the stuff i am running is:

PHP 4.3.3 (cgi) (built: Sep 1 2003 04:45:21)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

RedHat Linux 7.x OS

Apache/1.3.27 Server
thanks

Ryan

Jul 17 '05 #2

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

Similar topics

6
4006
by: User | last post by:
Anyone have ideas which os command could be used to get the size of a file without actually opening it? My intention is to write a script that identifies duplicate files with different names. I...
4
16186
by: Kenny | last post by:
I have been trying to write a script that will increase the size of and image when you mouse over it, and decrease it to original size, when you mouse out. After a couple of attempts, this is what...
1
2217
by: BTHOMASinOHIO | last post by:
I am confussed on what the heck is going on ?! I have an HTML INPUT File Box on an Email Piece of an application. I know that File Size is set to 4MB in the WebConfig File and that is fine, but I...
2
4712
by: Ruskin | last post by:
I have developed an upload tool, that allows users to upload files (funny that). The asp form object has a 'SizeLimit' property that can be set, to prevent files being uploaded, that are too large....
4
3474
by: tshad | last post by:
I am having trouble with links in my DataGrid. I have Links all over my page set to smaller and they are consistant all over the page in both Mozilla and IE, except for the DataGrid. Here is a...
3
13107
by: Jefferis NoSpamme | last post by:
Hello all, I'm trying to limit the file size to 1 meg on upload of image files and I am trying a script from javascript internet, but it is giving me errors on IE ² is null or not an object ³...
2
1659
by: bizt | last post by:
Hi, I am currently trying to debug a script written by my predecessor. Basically I have an HTML form that is used to upload a file that is then processed using a PHP script. It has been in...
7
1895
by: rn5a | last post by:
I am giving users the option to upload files from their hard disk to the server but only those files will be uploaded whose size is less tha or equal to 1 MB. I am using the ASP.NET FileUpload...
1
5435
by: chrisj | last post by:
I'm using freeASPupload and got some assistance integrating to a Member script. It works successfully. In this modified version there are two groups that use this upload script. Members of one...
0
7132
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
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6899
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
7390
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...
0
5475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.