Viewing large php files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
alwaysak
Forum Newbie
Posts: 1
Joined: Sat Jun 18, 2005 1:31 pm

Viewing large php files

Post by alwaysak »

Hi

I am problem opening large php documents in web browser.

Sometimes the webpage reloads over and over and The page cannot be displayed error message comes up.

If i put a die in the middle of the script I can see random noise in the html source.

A simple line such as this

Code: Select all

echo '<td bgcolor=&quote;#EFEFFF&quote;><img src=&quote;../../images/dotBig.GIF&quote; width=&quote;100%&quote; height=&quote;3&quote; border=&quote;0&quote;></td>';
comes out like

Code: Select all

<td bgcolor=&quote;#EFEFF  ɂimg src=&quote;../../images/dotBig.GIF&quote; width=&quote;100%&quote; height=&quote;3&quote; border=&quote;0&quote;>
This only happens if the data being displayed is large and it works fine for small data set.

Can anyone help.

This happened to me before as well and to fix it I broke the page in to smaller pages but this time this is not an option.

Please Help


AK
User avatar
senthilnayagam
Forum Newbie
Posts: 17
Joined: Wed Jun 08, 2005 5:36 am
Location: Bangalore

Post by senthilnayagam »

sounds strange,

can you paste more code, or rename your code as phps and host it somewhere or a sample URL where i can see the output

will surely debug / fix it for you


regards
senthil
Post Reply