New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Changing php.ini file on server


Post Reply New Thread Subscribe

 
Thread Tools
vtupser
Guest
 
Posts: n/a

Does anyone know the command line to change the output_buffering directive in the php.ini file by using either the ini_set() function in a php file or using a .htaccess file? The hosting company server that I use has that directive set to 'no value' and I need it to be turned on/set to a certain character size. They seem to not know what I am talking about, so I was checking to see if I could do it through ini_set() or .htaccess. I do not have access to the php.ini file myself since I am using a shared hosting plan and not a dedicated server.
QUOTE Thanks
lil
Guest
 
Posts: n/a

Quote:
Originally Posted by vtupser
Does anyone know the command line to change the output_buffering directive in the php.ini file by using either the ini_set() function in a php file or using a .htaccess file? The hosting company server that I use has that directive set to 'no value' and I need it to be turned on/set to a certain character size. They seem to not know what I am talking about, so I was checking to see if I could do it through ini_set() or .htaccess. I do not have access to the php.ini file myself since I am using a shared hosting plan and not a dedicated server.
You should be able to do this (you may have already tried)

This will test the current value:

<?php

$oldsetting=ini_get('output_buffering');

echo "The old setting is $oldsetting <br>";

?>


To change it do a:

<?php

$oldsetting=ini_set('output_buffering',On); // or to the level of bytes of buf'r
$newsetting=ini_get('output_buffering);

echo "The OLD setting was: $oldsetting and the NEW setting is now: $newsetting.<br>";

?>


Not wishing to perhaps teach you to suck eggs but output buffering is a variable that is so-called PHP_INI_PERDIR which means you can change the setting in php.ini (for a global setting over your server) or in the .htaccess or httpd.conf files when using apache for a per directory setting of this variable.

However how you do the latter for httpd.conf and php.ini I am not sure. I would be sure php.net or perhaps a search on apache, php.ini, .htaccess may avail some answers if you need this on a per dir setting.

Try the ini_set method first though to make sure that works.

Hope this helps you!

Vicky :flower:
QUOTE Thanks

Post Reply New Thread Subscribe


« Help! Site I utilize for work requires IE | Simple CMS via web browser »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Error copying files to Win2K3 file server mikemedendorp OS X - Operating System 5 03-16-2012 01:13 PM
Server 2003 upgrade woes file associations w/OS X Mac klempit OS X - Operating System 5 02-05-2007 10:26 PM
Changing folder / file names... why so hard? iFX Switcher Hangout 9 05-17-2005 10:15 PM
Can you guys open this site? Desolate One OS X - Apps and Games 13 04-29-2005 01:23 PM
Problems with SMB and Windows 2000 Server Hoppers Internet, Networking, and Wireless 0 01-26-2005 07:02 AM

All times are GMT -4. The time now is 08:54 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?