473,566 Members | 2,776 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 1673
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******@n ews.comindico.c om.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 have no trouble getting the names of all the files in the directory using the os.listdir() command, but that doesn't return the file size. In order...
4
16192
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 I've come up with. In this example, there are 5 images (0 thru 4) all with a height of 80px. When you mouse over an image, it changes the...
1
2236
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 have a couple problems that include the magical 4mb number. 1. My problem is that when my file is over the 4 mb limit. If the 4 MB limit is met...
2
4725
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. Is there a way in Javascript, to interrogate the file size before the form is posted, so that the validation can be done before trying to post the...
4
3483
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 snippet from my .css file: *************************** body { margin:0; padding:0;
3
13124
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 ³ and isn¹t checking the file size or preventing the upload. ERROR IS <<<<Œthis.form.uploadfile.value² is null or not an object on this line:
2
1667
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 frequent use but I have just been contacted because there is a PDF document that is not uploading. I reckon it may have something to do with the file...
7
1901
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 control to design the interface. This is the code: <script runat="server"> Sub Page_Load(.....) If (Page.IsPostBack) Then
1
5441
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 group get automatically re-directed after uploading. However, this member group never gets the benefit of knowing if they've uploaded an incorrect...
0
7666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8108
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7951
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.