hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : Web Hosts: PHP output buffering "on" by default?
Reply

Web Hosting Discussions on all aspects of web hosting including past experiences (both negative and positive), choosing a host, questions and answers, and other related subjects. If your service is unavailable, please click here.
Forum Jump

Web Hosts: PHP output buffering "on" by default?

Reply Post New Thread In Web Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-17-2011, 10:28 AM
MrEliasen MrEliasen is offline
Junior Guru Wannabe
 
Join Date: Aug 2011
Location: Denmark
Posts: 89

Web Hosts: PHP output buffering "on" by default?


Hi WHT

I have a question to the web hosting companies reading this.
For your clients, do you have output_buffering set to "on" by default?

If no, why not? Is it very resource intensive?


I recently started coding a users system class, but I would like to know the answer to the above question, as it will have an impact on how I will be coding the class, unless that would be a bad thing?

I am still new in the big world of web development, hence the reason for the maybe obvious question.

Any feedback about output buffing (why on/why off) is appreciated!

Thank you!


For reference:
Code:
; Output buffering is a mechanism for controlling how much output data
; (excluding headers and cookies) PHP should keep internally before pushing that
; data to the client. If your application's output exceeds this setting, PHP
; will send that data in chunks of roughly the size you specify.
; Turning on this setting and managing its maximum buffer size can yield some
; interesting side-effects depending on your application and web server.
; You may be able to send headers and cookies after you've already sent output
; through print or echo. You also may see performance benefits if your server is
; emitting less packets due to buffered output versus PHP streaming the output
; as it gets it. On production servers, 4096 bytes is a good setting for performance
; reasons.
; Note: Output buffering can also be controlled via Output Buffering Control
;   functions.
; Possible Values:
;   On = Enabled and buffer is unlimited. (Use with caution)
;   Off = Disabled
;   Integer = Enables the buffer and sets its maximum size in bytes.
; Note: This directive is hardcoded to Off for the CLI SAPI
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; http://php.net/output-buffering
output_buffering = ____

Reply With Quote


Sponsored Links
  #2  
Old 12-17-2011, 10:41 AM
sprintserve sprintserve is offline
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,002
We leave it set at the recommended values (4096) and so far, I am not aware of any clients hitting this limit, or much impact on the server wise. So it's definitely not a big issue to leave it on.

__________________
••• 100% Customer Satisfaction!!! •••
••• http://www.sprintserve.net •••
••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | •••
••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••

Reply With Quote
  #3  
Old 12-17-2011, 01:03 PM
PISG PISG is offline
Temporarily Suspended
 
Join Date: Oct 2011
Location: Georgia
Posts: 17
We leave it set at the recommended values

Reply With Quote
Sponsored Links
  #4  
Old 12-17-2011, 08:00 PM
MrEliasen MrEliasen is offline
Junior Guru Wannabe
 
Join Date: Aug 2011
Location: Denmark
Posts: 89
Thanks for the replies!

Appreciated.

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web admin Guru needed ASAP - site developed in PHP handler "DSO" to work in "suphp" coax_k Systems Management Requests 4 01-22-2011 12:21 PM
php command line output to a "global" type variable bigdessert Programming Discussion 9 04-09-2010 11:44 AM
whats "user" and "system" in the top output? chamelion VPS Hosting 3 09-28-2006 11:38 PM
want to change default folder from "\" to "\www" - Plz help me looking4hosting Hosting Security and Technology 2 02-24-2005 07:37 AM

Related posts from TheWhir.com
Title Type Date Posted
Mozilla Firefox 23 Will Block Mix SSL Content by Default Web Hosting News 2013-04-12 11:39:07
CloudFlare Railgun Offers Hosting Customers One-Click Dynamic Caching Web Hosting News 2013-02-27 10:44:29
Living on the edge: why all hosts should offer CDN services Webinars 2012-10-17 15:54:32
ScienceLogic Survey Finds 39 Percent of Web Hosts Identify Cloud Providers as Biggest Threat Web Hosting News 2012-08-24 17:47:09
Google Data Centers Consume 50 Percent Less Energy than Average: Report Web Hosting News 2011-09-09 15:19:21


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?