Click to See Complete Forum and Search --> : well, now i know, phpbuilder don't ob_start()
jimson
06-03-2003, 06:39 PM
......
Warning: Cannot add header information - headers already sent by (output started at /www/lc/phpbuild/php/prepend.php:27) in /www/lc/phpbuild/www/board/admin/functions.php on line 1573
Mordecai
06-03-2003, 06:41 PM
Yeah, just noticed that... wonder what's causing that?
All of our avatars are screwed up, too.
jimson
06-03-2003, 06:45 PM
i think the moderators already notice this... hopefully they have some spare time to correct it...
if jstarkey fall sleep, somebody please help us to PING this guy... lol :)
stolzyboy
06-03-2003, 06:47 PM
well, now i know, phpbuilder don't ob_start()
that's probably a good thing, ob_start() isn't the best thing to use
in a large scale site like this
its better to remove all output rather than output buffering
but obviously something is wrong
tuf-web.co.uk
06-03-2003, 06:52 PM
fixed now :D
jimson
06-03-2003, 06:52 PM
i think they do this
error_reporting = E_ALL
in this production and large complex site... :)
jimson
06-03-2003, 06:54 PM
tuf-web.co.uk
u are a fast $postNum++ learner... :D
laserlight
06-04-2003, 02:04 AM
u are a fast $postNum++ learner...
me too :)
well, I think one should use output buffering like using GOTOs.
Use it if needed, but avoid it.
tuf-web.co.uk
06-04-2003, 04:14 AM
u are a fast $postNum++ learner... :D
errr, is that good?!
jimson
06-04-2003, 04:41 AM
errr, is that good?!
well, is some way, otherwise, this would be a $postNum++ thread... :) lol
tuf-web.co.uk
06-04-2003, 07:38 AM
but what does it all mean?
jimson
06-04-2003, 09:50 AM
i don't know ...
tuf-web.co.uk
06-04-2003, 12:25 PM
me very confused :(
stolzyboy
06-04-2003, 12:28 PM
you should be.......
anyway what jimson is saying is that he and apparently me only
post to get our post number up
on the other hand i do post and help large amounts of people
that is all he is saying
tuf-web.co.uk
06-04-2003, 12:35 PM
ahh i c now, just some more jargon language
oh well now i know incase i need to know later
and on the other hand, i dont not $Postnum++ :P
well yet anyways ;)
Cogen
06-04-2003, 12:48 PM
stolzyboy / laserlight ... I'm just curious, why don't you recommend output buffering? I didn't really notice any major drawbacks to using it on php.net. I have recently started using output buffering on all sites that I create. Is that a bad idea?
stolzyboy
06-04-2003, 01:48 PM
this was from one of my previous posts
the only difference is that it forces to internally buffer the output instead of outputting the buffer, you will see no difference in speed or server overhead with a simple header redirect, or setting a cookie, and i have yet to see any difference when doing anything with that option regardless of what it is, glad i could help
however that was til a site i had grew to number and number of posts/request that sort of thing
it is a company intranet of 1000 peeps involving calendars/chats/message boards all that sort of thing and i relied on ob_start() until it grew enormously and they were using it
they called and asked why it was so slow, since its right on their network
i said hmmmmm......let me think
so i removed all ob_start()'s, then removed all output before header calls and voila it works like lightning
now keep in mind that this is hundreds of requests per minute and if you don't get into something that large you shouldn't have
a problem with ob_start()
Cogen
06-04-2003, 03:03 PM
okay .. thanks stolzyboy, I'll keep that in mind. Most of the sites I create are not that busy. :)
jimson
06-04-2003, 06:17 PM
try saving a site page... if > 30 kb, may consider to turn off the ob_start()... imho
stolzyboy
06-04-2003, 06:59 PM
30K is squat and is irregardless compared to user activity, and you can have 300K if it isn't doing too much it won't matter
and you can have 30K doing a whole load of crab and have it kill your page
i wouldn't get hooked on a size as how you "think" your page will perform
jimson
06-05-2003, 01:15 AM
IMHO... if
a.php = 30 kb
b.php = 300 kb
structure of a.php
=============
+----------------+
| (a) 10 kb |
|----------------+
| (b) | (c) |
| 8 | 22 |
| kb | kb |
| | |
+----------------+
structure of b.php
=============
+----------------+
| (a) 80 kb |
|----------------+
| (b) | (c) |
| 40 | 180 |
| kb | kb |
| | |
+----------------+
where a = header area
b = menu area
c = content area
if we ob_start() and don't flush it, user will see nothing untill the 300 kb is downloaded for the b.php and 30kb is downloaded for a.php
while... our main targets still the 56k peeps... if they can't see anything in the first few seconds... they will move from our sites.
they thought we are down... :(
so, IMHO.. size really matters.
stolzyboy
06-05-2003, 11:00 AM
that may be in your 56K group, but i need not worry about the connection speeds, i am working with corporate intranets and until you get tons of traffic on large complex pages, you won't see a significant performance hit with ob_start()
however when you are doing very complex things (not just simple inserts updates deletes) but complex interactive stuff in an intranet setting for a 1000 employee setting (handling just about all aspects of their business) ob_start() matters a whole hell of a lot
and trust me size really doesn't matter *just ask the ladies* when using ob_start(), it is what you are doing, been there, done that
and regardless if you are using ob_start() or not, of course a 30K page will load faster than a 300K page
but in the end it is the user base you need to worry about for your particular project
my company focuses mainly on corporate intranets than simple database driven websites for public users
and that is IMHO
jimson
06-05-2003, 06:15 PM
i am not pro ob_start()...
but for a 300kb with ob_start and you flush it in section(a), (b) and (c). IMHO, it will be the same like u are not using ob_start().
and regardless if you are using ob_start() or not, of course a 30K page will load faster than a 300K page
for a 30K page, if u ob_start() and ob_end_flush() in the end, IMHO, it will be the same like u r not using ob_start.
for a 300K page, if u ob_start() and ob_end_flush() in the end,
IMHO, user will need to download the 300K before they can see things.
my point is, people ob_start(), but they don't ob_flush().. they only ob_end_flush()... so the site is slow.
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.